Save edited bars
write_barsReplace up to 16 bars of one part at its exact saved revision, using edited ABC or MusicXML. Other bars stay and undo restores the change. No credits. Written rhythm can change playback; verify it.
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": {
"score_id": "<score_id>",
"revision": "<revision>",
"measures": "<measures>"
},
"name": "write_bars"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| abc | No | Edited ABC with its header, voices and every selected bar; use this or musicxml, not both. | |
| part_id | No | The part ID returned with the bars. | |
| measures | Yes | The same bars as read, in score order: "1-4" or "1,5-8". | |
| musicxml | No | Edited measure elements, same numbers and order, with retained note IDs; instead of abc. | |
| revision | Yes | The current saved revision, from the latest read or edit. | |
| score_id | Yes | The score, from a result or the score list. |