Apply project ops atomically
synkopa_applyApply related project edits as one atomic change with a single undo step; all operations succeed or none apply.
Instructions
Apply a batch of project ops as one atomic change and one undo step: all of them apply, or none. Use it for related edits (a pattern with its notes, a clip and its automation). Op names, fields, units and an example of each come from synkopa_run ["schema"]. Example ops: [{"op": "setBpm", "bpm": 128}, {"op": "setLoop", "loop": {"a": 0, "b": 16}}].
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": {
"ops": "<ops>"
},
"name": "synkopa_apply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | The ops, in order. | |
| label | No | Name of the undo step, as the musician sees it in the Edit menu (e.g. "Busier hats"). | |
| dryRun | No | With `project`: try the ops and report whether they change the project, without saving the file. | |
| project | No | Absolute path of a .synkopa project file to work on without the app (loaded, edited, saved back). Omit to act on the project open in the running Synkopa app. | |
| session | No | Only when several Synkopa apps are open: the id (or its first characters) of the one to use, from synkopa_run ["sessions"]. | |
| ifRevision | No | The `revision` from your last read: the edit is refused with REVISION_CONFLICT if the project changed since. |