Add Label
add_labelPlaces a colored boxed staff text label at the start of a chosen measure, such as a section tag or fill cue, and saves it in the MuseScore score for later removal with clear_highlights.
Instructions
Add a label in a colored box (a boxed staff text) at the start of a measure, e.g. a section tag like 'Groove x7' or 'Fill'. Saved in the score; remove with clear_highlights.
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": {
"measure": "<measure>",
"text": "<text>"
},
"name": "add_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Label text | |
| staff | No | Staff to attach the label to (0-based) | |
| border | No | Box border color as "#rrggbb" | #000000 |
| measure | Yes | Measure number (1-based) | |
| background | No | Box color as "#rrggbb" (default pale yellow) | #fff2a8 |