batch_commands
Execute multiple Ableton commands atomically in one round-trip, with a single undo for the entire batch and early exit on failure.
Instructions
Execute a list of commands in a single round-trip to Ableton.
The whole batch runs atomically inside one main-thread closure, so a
single subsequent undo reverts the entire sequence. Execution stops
at the first failure and partial results are returned.
Parameters:
commands: list of {"type": str, "params": dict}. Allowed types are any modifying or read-only command (e.g.
create_midi_track,add_notes_to_clip,set_track_volume). Nestedbatch_commandsis not allowed.
Returns a JSON object with:
results: list of per-command {"status", "result" or "message"}executed: how many ran (including the failing one if any)total: how many were submittedfailed_at: index of the failure or nullerror: failure message or null
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": {
"commands": "<commands>"
},
"name": "batch_commands"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commands | Yes |