call_api_batch
Runs multiple API calls sequentially in one round trip and enables later calls to reuse earlier return values via $result for chained operations.
Instructions
Run several API calls in order in one round trip. Each call is {"target", "method", "args"}. {"$result": i} (as target or anywhere in args) is the raw return value of call i (0-based), so calls can chain, e.g. target {"$result": 0} after a call that returned a timeline.
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": {
"calls": "<calls>"
},
"name": "call_api_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calls | Yes | ||
| stop_on_error | No |