Run several synkopa commands
synkopa_scriptRuns multiple Synkopa commands in order from a line-per-command list, optionally loading and saving a project file once, and returns each command's result.
Instructions
Run several synkopa commands in order, one per line, written as on a command line: words separated by spaces, '…' or "…" around a word with spaces (no escapes, so JSON goes in '…'). Example lines: "bpm 128", "pattern --id 1 --ch hat --steps 'x.x. x.x. x.x5 x.x9'", "render --out /abs/preview.wav". With project the file is loaded once and saved once at the end, and nothing is saved if a line fails. Without it the lines run in the app one by one: lines before a failing one stay applied, each as its own undo step. The result lists each line's reply.
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": {
"lines": "<lines>"
},
"name": "synkopa_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | One command per item, without the leading `synkopa`. | |
| dryRun | No | With `project`: run the lines and save nothing. | |
| saveAs | No | With `project`: save the result to this file instead, leaving the project file as it was. | |
| 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"]. |