Edit a project
project_editApply a batch of track, clip, mixer, tempo, and automation edits to a project file atomically: all ops succeed or nothing is written, and later ops can reference earlier results.
Instructions
Applies a batch of ops to a project file: tracks (addTrack, removeTrack, renameTrack, setTrack, setTrackRoute, setInstrument, setPartRig), clips (addAudioClip, addMidiClip, setClipSource, moveClip, trimClip, splitClip, duplicateClip, removeClip, setClip, setProgram, setOverlapPolicy), sources (relinkSource), the mixer scene (setMixerScene, suggestMix, setStrip, addBus, removeBus, addSend, removeSend, addVcaGroup, removeVcaGroup, setSidechain), tempo and meter (setTempoSegments, setTimeSignatures), annotations (annotateKeys, annotateChords, annotateSections, setMarker) and automation (addAutomationLane, editAutomationLane, removeAutomationLane, automationFromMidiCc). All ops succeed or nothing is written; an op can address what an earlier op created as {"op": n}, and the response lists created ids. The file is updated in place; pass 'output' or 'dry_run' to keep it. Notes are written with midi_write or midi_compose and placed with addMidiClip; read results with project_read. Example: {"path": "song.sonare.json", "ops": [{"op": "addTrack", "kind": "midi", "name": "bass"}, {"op": "addMidiClip", "track": {"op": 0}, "path": "bass.mid"}, {"op": "setTrack", "track": "bass", "gain_db": -6}]}.
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": "project_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | 1-64 ops applied in order; all or none take effect. | |
| path | Yes | The project file (.sonare.json) to edit. | |
| detail | No | 'concise' returns the summary and the most useful fields; 'full' returns all. | concise |
| output | No | Write the result to this .sonare.json file instead of updating 'path'. | |
| dry_run | No | Apply the ops to a scratch copy and report; write nothing. | |
| overwrite | No | Replace an existing 'output' file. |