addTracksToPlaylist
Add multiple tracks to a Spotify playlist using track IDs and specify insertion position for playlist management.
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 |
|---|---|---|---|
| playlistId | Yes | The Spotify ID of the playlist | |
| trackIds | Yes | Array of Spotify track IDs to add | |
| position | No | Position to insert the tracks (0-based index) |