Update or reorder playlist
update_playlistRename a playlist, edit its description, genre or tags, and reorder its existing tracks by BPM, Camelot key, duration or release date. Never adds or removes tracks.
Instructions
Change a playlist's title, description, genre or tags and/or reorder its tracks: sort_by (bpm, camelot, duration or released, with direction asc/desc; camelot goes number by number and, inside a number that has both letters, starts with the letter that mixes with the previous track, so it leaves as few harmonic clashes as possible, and tracks without a key go last) or track_order with all its ids in the desired order. Never adds or removes tracks. Does not write if the API hides any track. If after writing it does not see the same set of tracks, it restores the previous order and reports it.
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": {
"playlist_id": "<playlist_id>"
},
"name": "update_playlist"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Comma-separated tags, e.g. "warm, deep house" (a list is also accepted) | |
| genre | No | ||
| title | No | ||
| sort_by | No | ||
| direction | No | ||
| description | No | ||
| playlist_id | Yes | ||
| track_order | No | All the playlist's ids, in the new order |