Add a track
add_to_playlistAppend a track to one of the listener's own playlists. Use it after create_playlist; the demo playlists pl1, pl2 and pl3 are read-only. Returns ok, or ok false with the reason, such as a track that is already there.
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": {
"id": "<id>",
"track_id": "<track_id>"
},
"name": "add_to_playlist"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | the playlist id, from create_playlist or list_playlists | |
| track_id | Yes | the track to add |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No |