batch_calc
Execute multiple calculation steps sequentially in one call, letting later steps reference earlier results and returning all outputs at once.
Instructions
Executes multiple calculation steps in one call and returns all results at once.
Steps run sequentially in array order. Each step is {"op": "", "args": {...}}, where "op" is any of: add, subtract, multiply, division, sum, modulo, floor, ceiling, round, mean, median, mode, min, max, sin, arcsin, cos, arccos, tan, arctan, radiansToDegrees, degreesToRadians, int_convert, bitwise, endian_swap, ieee754_convert, crypto_calc, data_codec.
Chaining: an argument value may be a reference to an earlier step's result: {"$step": } -> the whole result of that step {"$step": , "field": ""} -> a specific field of that step's object result (required when the result is an object, e.g. "resultHex", "decimal", "hex", "base64")
References only point to earlier steps (index < current). Returns a compact JSON array in step order, each item {step, op, status, result|error|reason}. A step is "skipped" only if a step it depends on failed; unrelated steps still run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | Ordered calculation steps; later steps may reference earlier results |