batch
Execute an ordered list of tool calls in one request, with precondition checks and a per-step trace; it halts on failure for safe 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, safety stop, or step error and returns a per-step trace so you re-plan from real state. Every step goes through the same safety gate as a direct call. Use expect to guarantee you act on the right window/element instead of guessing. Set dryRun:true to pre-scan safety tiers without executing. A confirm-tier step still HALTS the batch by default; allowConfirm:true only proceeds if the operator started the daemon with CLAWD_BATCH_ALLOW_CONFIRM=1 (otherwise it is ignored — confirm-tier stays gated).
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.) | |
| dryRun | No | Only report each step's safety tier; do not execute. | |
| maxSteps | No | Hard cap on executed steps (default 12). | |
| allowConfirm | No | Request that confirm-tier steps proceed. Only effective if the operator enabled CLAWD_BATCH_ALLOW_CONFIRM=1 on the daemon; otherwise ignored and the batch halts at the confirm step. Never bypasses block-tier. |