addTracksToPlaylist
Add Spotify tracks or podcast episodes to a playlist. Pass track IDs or full URIs to insert items at a chosen position.
Instructions
Add tracks or podcast episodes to a Spotify playlist. Accepts Spotify track IDs, episode IDs, or full Spotify URIs (e.g. spotify:episode:xxx).
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": {
"playlistId": "<playlistId>",
"trackIds": "<trackIds>"
},
"name": "addTracksToPlaylist"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| position | No | Position to insert the items (0-based index) | |
| trackIds | Yes | Array of Spotify IDs or URIs to add. Plain IDs are assumed to be tracks. To add podcast episodes, pass full URIs: spotify:episode:{id}. | |
| playlistId | Yes | The Spotify ID of the playlist |