Edit an existing score
musescore_editApply ordered measure- and element-level edits to an existing MuseScore score, enabling targeted fixes without rewriting the whole piece.
Instructions
Modify a score that already exists (any format MuseScore can open), at measure or element level. Operations run in order. Use this for fixes to an existing file instead of re-writing the whole piece.
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": {
"input": "<input>",
"operations": "<operations>"
},
"name": "musescore_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Output basename. | |
| input | Yes | Absolute path to the score file. | |
| style | No | Absolute path to a .mss style file. | |
| outDir | No | Output directory. Default: <score dir>/out. | |
| formats | No | Default ["mscz","pdf","png"]. | |
| operations | Yes | Ordered list of operations. Supported `op` values: set_metadata {title?,subtitle?,composer?,lyricist?} · set_tempo {tempo,measure?} · set_key {key,measure?} · set_time {time,measure?} transpose {semitones,from?,to?} · delete_measures {from,to} · duplicate_measures {from,to,times?} · append_measures {count} add_lyrics {text,staff?,verse?,part?} · set_instrument {instrument,part?} · set_systems {measures} |