Batch score edit
score.batchA pipeline of score edits in one call: each op runs on the result of the one before, and a later op takes an id an earlier op made with {"$ref":"ops[N].region_id"} (or part_id, device_id, send_id, note_ids[M]; N counts from 0), or, where the earlier op has a name (as: "drums"), with {"$ref":"drums.part_id"}, which needs no counting. Each op is a score.* edit by name with its own args, less score_id. All apply or none do, and one new score_id comes back. Returns the new score_id, what changed, warnings, and results: [{tool, part_id?, device_id?, region_id?, send_id?, note_ids?}] per op.
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>",
"ops": "<ops>"
},
"name": "score.batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | Score edits applied in order as one change. An arg may be {"$ref":"ops[2].region_id"} (or part_id, device_id, send_id, note_ids[M]) to use an id made by an earlier op, counted from 0, or {"$ref":"drums.part_id"} for an op named with as | |
| score_id | Yes | The score to edit |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent | Yes | The version this edit started from | |
| changed | Yes | What the edit added, removed or modified | |
| results | Yes | ||
| score_id | Yes | The new version: edit this one next (older ids stay valid) | |
| warnings | Yes |