batch_add_to_playlist
Add tracks from multiple Spotify sources (tracks, albums, artists, playlists) to a target playlist in one call. Deduplicates, batches writes, and supports dry-run previews.
Instructions
Add tracks from multiple source URIs (tracks, albums, artists, playlists) to a target playlist in one call. Dedupes within the batch and optionally against the existing playlist. Batches writes in groups of 100. Dry-run previews without writing. Elicitation for 100+ tracks. Target the playlist by ID/URI/URL or by lane name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Source page size, 1–100. Default: 100 | |
| dedupe | No | Deduplicate (within batch and against target). Default: true | |
| dry_run | No | Preview only: validate inputs and describe exactly what would change without performing it | |
| scan_cap | No | Maximum source rows to scan; bounded by SPOTIFY_MCP_FETCH_ALL_CAP | |
| max_results | No | Max items to return (default: SPOTIFY_MCP_MAX_ITEMS env or 50) | |
| source_uris | Yes | Source URIs: spotify:track:, spotify:album:, spotify:artist:, spotify:playlist: | |
| target_lane | No | Lane name from the lane registry; provide exactly one of target_playlist_id or target_lane | |
| response_format | No | 'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API object | concise |
| target_playlist_id | No | Target playlist ID, spotify:playlist: URI, or URL; provide exactly one of target_playlist_id or target_lane |