patch_edit_batch
Batch-edit Max for Live devices and .maxpat files atomically; if any operation fails, every change rolls back.
Instructions
Apply many edits atomically (all roll back if one fails). Each op is a dict with "op": add_box (same fields as patch_add_box, plus "as": "alias"), set (box, set, unset), remove_box (box), connect (src, outlet, dst, inlet), disconnect (src, outlet?, dst?, inlet?). Ops may override "file". Later ops refer to boxes added earlier as "$alias", e.g. [{"op":"add_box","text":"t b b","as":"t"},{"op":"connect","src":"$t","outlet":0,"dst":"obj-5","inlet":0}].
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": {
"path": "<path>",
"ops": "<ops>"
},
"name": "patch_edit_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | ||
| file | No | ||
| path | Yes |