add_to_playlist
Add Spotify tracks or episodes to a playlist you own or collaborate on using track or episode URIs; append them in order or insert at a chosen position.
Instructions
Add tracks to a playlist the user owns or collaborates on, by spotify:track: URIs (resolve names first with search). Appends in order unless a position is given.
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": "<playlist>",
"uris": "<uris>"
},
"name": "add_to_playlist"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uris | Yes | spotify:track:... or spotify:episode:... URIs | |
| playlist | Yes | Playlist name (partial ok), id, URI or URL | |
| position | No | 0-based insert position (default: append) |