command_batch
Runs up to 256 commands in order and reports completed steps, failures, and feature errors, with options to stop on error or feature break.
Instructions
Runs up to 256 commands in order and returns {completed, failed, results: [{ok, result | error, broke?, ms}], featuresFailed?, ms}. failed counts the commands that returned an error; stop_on_error (default true) stops at the first. A command that succeeds but makes a feature fail is no failed step, since a later step may repair it: its entry lists the features under broke ({feature, id, error, causedBy?, repairedBy?: the step after which it no longer failed}); a query, or touching a feature that failed already, breaks nothing. The batch is judged at the end: featuresFailed lists the features that fail in the final state and that a step made fail ({step, feature, id, type, error, causedBy?, fix}), and the batch is an error (isError) when there are any. A feature a step edited (feature.edit, sketch.* on it) and left failing is listed too, even when it failed before. The judging starts again on the new document after a step that makes another document active (file.new, file.open, file.activate, instance.open, jig.edit, ...). stop_on_break: true also stops at the first step that makes a feature fail. Not atomic: steps that ran stay applied; edit.undo takes back the last applied step, once per step. terse reports {completed, failed, errors: [{step, error, ms}], last: {step, result, ms}, featuresFailed?, ms}. ms is the wall-clock milliseconds each step and the whole batch took: the only fields that differ from run to run (null where there is no clock).
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": "command_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | ||
| terse | No | Report only the failures and the last result. Default false. | |
| intent | No | Why you run these steps, in a short sentence of your own. Optional but asked for: the person watching sees it in the window's agent log. | |
| stop_on_break | No | Also stop at the first step that makes a feature fail. Default false: judged at the end (featuresFailed). | |
| stop_on_error | No | Stop at the first command that returns an error. Default true. |