addTracksToPlaylist
Adds Spotify tracks to an existing playlist using playlist ID and track IDs, with optional position for insertion.
Instructions
Add tracks to a Spotify playlist
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 tracks (0-based index) | |
| trackIds | Yes | Array of Spotify track IDs to add | |
| playlistId | Yes | The Spotify ID of the playlist |