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).
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 |