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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| playlist_id | Yes | ||
| uris | Yes | ||
| position | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |