batch
Runs an ordered list of tool calls in one shot to collapse many round-trips, halting on the first failed precondition or step error and returning a per-step trace for re-planning.
Instructions
Run an ORDERED LIST of tool calls in one shot (collapses many round-trips into one). Each step is { name, arguments, expect? } (args is accepted for arguments). name+arguments is a normal tool call (compound like {"name":"computer","arguments":{"action":"type","text":"hi"}} or a granular tool). Optional expect is a precondition checked by RE-PERCEIVING before the step runs: {"window":"notepad"} (foreground window must match) or {"element":"Send"} (a11y element must be present). The batch HALTS on the first failed precondition, refusal, or step error and returns a per-step trace so you re-plan from real state. A step is refused exactly as a direct call would be (the user has stopped or paused clawdcursor, a dangerous key combo, an AI assistant window in front). Do not batch past an irreversible step the user did not ask for: ask first with system pause_for_user.
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": {
"steps": "<steps>"
},
"name": "batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | Ordered steps to run. Each step is a normal tool call: { "name": "<tool>", "arguments": {...}, "expect"?: {"window"?,"element"?} } ("args" is accepted for "arguments"). (A JSON-encoded string of the same array is also accepted.) | |
| maxSteps | No | Most steps one batch may hold; a longer one is refused before step 1 (default 12). |