add_playlist_items
Add tracks or episodes to any Spotify playlist. Handles large lists by automatically splitting into batches of 100 items, with optional insertion at a specific position.
Instructions
Add tracks or episodes to a playlist. Auto-chunks at 100 items per request.
Args:
playlist_id: The Spotify ID of the playlist.
uris: List of Spotify URIs to add (e.g. ["spotify:track:xxx"]).
position: Position to insert items (0-based). Appends to end if not specified.
When chunking, subsequent chunks insert immediately after the previous.
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_playlist_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uris | Yes | ||
| position | No | ||
| playlist_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |