Trim the song
trim_musicChooses which part of the song plays: startSeconds and endSeconds in SONG time (read_music_structure lists the sections in song time), at least 0.5 seconds apart and with at least two downbeats between them; either one alone moves only that edge and keeps the other where it is. For 'end on the last chorus', endAtSection takes a section label such as chorus, with an optional occurrence (1 = first; default the last one): the song then ends where that section ends, keeping its current start. Suits 'start the music at the chorus', 'shorten the song' and 'end on the last chorus'. Only the person's own uploaded or generated tracks can be trimmed, as in the Music panel; a library track plays from its start, so its drop can't be moved onto a cut either (a generated track can be). Uses no credit; undoable. Cuts re-sync to the trimmed song.
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": {
"listingId": "<listingId>"
},
"name": "trim_music"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| listingId | Yes | Listing id from list_listings. | |
| endSeconds | No | Where the song ends, in song seconds. Left out: the end stays where it is. | |
| occurrence | No | Which of that section, 1 = first. Default: the last one. | |
| endAtSection | No | End where this section ends (a label from read_music_structure). | |
| startSeconds | No | Where the song starts, in song seconds. Left out: the start stays where it is. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No |