batch
Run multiple bridge commands as one undo block and single round-trip. Ensures multi-step edits either complete together or stop on error, with one Ctrl+Z reverting all.
Instructions
Run several bridge commands as ONE undo block and one round-trip. commands: [{type, payload}]. Use for multi-step edits (e.g. several set_fx_param calls) so a failure stops cleanly and one Ctrl+Z reverts everything. Nested batches are refused. Returns {results: [per-command result], all_ok, failed_index, completed, total, stopped, rolled_back}. With stop_on_error (default) a failure stops the batch and the call errors with the failing command's code and index, unless return_partial_results is true, which returns the object above with stopped=true instead. Commands already run are NOT rolled back; undo the block.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Preview: return what would run without changing the project. | |
| commands | Yes | [{"type": "add_track", "payload": {...}}, ...] | |
| undo_label | No | ||
| stop_on_error | No | Default true. | |
| return_partial_results | No | Keep operation results on failure. Check data.all_ok; no rollback. |