Query an NTP server for current UTC time and this clock's offset. Appends the sample to the drift log and returns the trend inline: current offset, drift rate (ms/day), and whether the clock is stable, drifting, or accelerating.
输入参数servertimezone
generate_uuid
Generate one or more random UUIDv4 identifiers -- for records, sessions, and IDs created in agent pipelines.
输入参数count
diff
Unified diff between two texts, with added/removed line counts. For reviewing edits, comparing outputs, or validating transformations.
输入参数text_a必填text_b必填context
calculate
Evaluate a math expression safely: + - * / // % **, parentheses, functions (abs round min max sqrt floor ceil exp log log2 log10 pow sin cos tan), constants pi e tau inf. Parsed to an AST and only whitelisted nodes are computed -- no eval(), no names, no arbitrary code.
输入参数expression必填
attest
Wrap any payload in a tamper-evident record: a UUID, a timestamp (NTP-verified when reachable, local clock otherwise -- the record says which), and a sha256 over the canonical record. One call, the record is complete and tamper-evident.
输入参数serverpayload必填
verify
Check a record produced by attest: recompute the sha256 over the record and compare. Pass/fail -- did this payload produce this hash at this timestamp. Any modified field breaks it.