Prepare Measure Repeat
prepare_measure_repeatSelect measures on specified staves and return the exact MuseScore clicks needed to add measure-repeat signs, since the plugin API cannot place them directly.
Instructions
Prepare measure-repeat signs: selects the measures that should become repeat signs, on the given staves, and returns what to click in MuseScore. The plugin API cannot place measure-repeat signs itself.
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": {
"start_measure": "<start_measure>"
},
"name": "prepare_measure_repeat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | No | Size of the measure-repeat sign: 1, 2 or 4 bars | |
| last_staff | No | Last staff (0-based, inclusive). Defaults to the last staff. | |
| end_measure | No | Last measure (1-based, inclusive). Defaults to start_measure + bars - 1. | |
| first_staff | No | First staff (0-based) | |
| start_measure | Yes | First measure to turn into a repeat sign (1-based); it repeats the bars before it |