playlist_union
Merge 2–10 Spotify playlists into one target playlist, removing duplicate tracks while preserving first-seen order. Preview changes with dry_run before creating or replacing the target.
Instructions
Union of 2–10 playlists into target (deduped, first-seen order). An empty union empties the target the same way subtract does. Quota: N GETs + PUT/POST; replacing an existing target also reads its current items and its playlist metadata to measure the destructive impact.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Source page size, 1–100. Default: 100 | |
| dedupe | No | Drop duplicate URIs across the merged sources. 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 | |
| playlists | No | Canonical ordered playlists (2–10) | |
| max_results | No | Max items to return (default: SPOTIFY_MCP_MAX_ITEMS env or 50) | |
| target_name | No | Name for a newly created target playlist; provide exactly one of target_playlist_id or target_name | |
| response_format | No | 'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API object | concise |
| target_playlist_id | No | Existing target playlist (ID, URI, or URL); provide exactly one of target_playlist_id or target_name |