run_op
Run one of the 43 ops by id: returns the value, or for large results a preview and a handle id (h_...) to pass as the next op's input. Ops by category: data: json_parse, get, filter, pick, pluck, sort, unique, count_by, stats; format: to_markdown, to_csv, to_text, join, template; compute: calc, now, date_info, date_add, date_diff, encode, decode, url_parse, validate; html: html_clean, html_to_text, select, extract_links, extract_tables, extract_meta; structure: outline; network: fetch; text: find, contains, slice, fit, chunk, replace, split, regex_extract, normalize, count, diff; integrity: hash. Use this for a single step on data you already have; chain two or more with run_pipeline (only the final result comes back). For a standalone answer prefer the front-door tools: calculate_expression over calc, calculate_date over now and date_*, read_page over fetch. Unsure of an op's args? discover_ops(op=). Handles are kept for 60 minutes. Only fetch touches the network (public addresses only, 60 a minute per client); all ops share a limit of 1200 steps a minute. Wrong arg names or types return the op's expected args and a did-you-mean. Example: run_op(op="json_parse", input="{'a': 1,}", args={"lenient": true}).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"op": "<op>"
},
"name": "run_op"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | Op id from the list above, e.g. 'html_to_text'. | |
| args | No | The op's arguments, e.g. {"url": "https://example.com"} for fetch. | |
| input | No | The data to work on: a handle id (h_...) from an earlier result, or a literal value. Omit for ops that take none (fetch, calc, now). | |
| terse | No | Return only the answer (value, or handle and preview), without steps, hashes or hints. | |
| input_type | No | Override the inferred type of a literal input, e.g. 'html' for markup passed as a string. | |
| inline_max_tokens | No | Return the value itself when it's at most this many estimated tokens, else a preview. Default 300. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | terse: the value itself. | |
| handle | No | terse, large result: its handle id. | |
| result | No | The handle: id, type, size, est_tokens, value or preview, next ops. |