Run a synkopa command
synkopa_runRuns one Synkopa command and returns its JSON result, enabling agents to edit channels, patterns, effects, routing, or render audio in a project.
Instructions
Run one synkopa command and return its JSON result. args are the words after synkopa, one array item each (no shell quoting), e.g. ["bpm", "140"], ["pattern", "--id", "1", "--ch", "kick", "--steps", "x... x... x... x..."], ["add-fx", "--insert", "3", "--type", "reverb"], ["render", "--out", "/abs/mix.wav"], ["undo"]. Covers everything the command line does: channels and instruments, patterns and notes, note generators, effects, routing, sidechain, automation, markers, audio import, stem separation, chord detection, pitch editing, auto vocal, mix assistant, MIDI files, rendering. ["help"] returns the full command reference; ["schema"] the ops of synkopa_apply; ["catalog"] effect types, parameters, presets and instruments. Each edit is one undo step.
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": {
"args": "<args>"
},
"name": "synkopa_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | The command and its options, one word per item. Numbers are written as strings ("140"). | |
| 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"]. |