Set Song Structure
set_song_structurePrints a song structure table on a new page at the end of a score, listing each section's bars, groove, fills, and total, and replaces any existing structure page.
Instructions
Print the song structure as a table on a new page at the end of the score, after the end notes: the song and artist under the heading (taken from the title frame unless given), then one row per section with its bars (as played), groove and fills, and the total. Get the rows from song_structure and give grooves and fills musical names. Replaces a structure page added before; no rows removes it. Edits the score file and reloads it (undo with restore_backup).
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": {
"rows": "<rows>"
},
"name": "set_song_structure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | One per section: {"section": "Verse 1", "bars": 16, "groove": "Verse shuffle", "fill": "Tom fill into chorus"} | |
| song | No | Song name under the heading. Defaults to the title in the title frame. | |
| artist | No | Artist next to the song name. Defaults to the composer in the title frame. | |
| heading | No | Page heading | Song structure |
| score_path | No | Path of the score file. Defaults to the file of the score open in MuseScore. |