Add tracks to a playlist
add_tracksAppend or insert multiple Spotify tracks into a playlist using URIs from search. Handles batching automatically to add all tracks in one request.
Instructions
Append tracks to a playlist (or insert at a position). Pass as many URIs as you like — they are batched automatically. Get URIs from search_tracks; do not invent them.
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>",
"uris": "<uris>"
},
"name": "add_tracks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uris | Yes | Spotify track URIs, e.g. spotify:track:4cOdK2wGLETKBW3PvgPWqT | |
| position | No | 0-based insert position. Omit to append to the end. | |
| playlist_id | Yes | Playlist ID (the part after /playlist/ in a Spotify URL) |