queue_replace_via_playlist
Replace the live queue by snapshotting it into a playlist and starting it as the playback context. Optionally drop duplicates or keep only chosen artists.
Instructions
Honest no-clear-endpoint workaround to replace the live queue: snapshot it, optionally filter (drop dupes / keep only given artists), build a playlist, and start it as the playback context — the live queue is replaced via context switch (Spotify has no queue-clear endpoint). Quota: 🟡 1 read + 2-3 writes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Preview only: validate inputs and describe exactly what would change without performing it | |
| device_id | No | Device to start the new context on | |
| drop_dupes | No | Drop repeated URIs from the snapshot (default true) | |
| keep_artists | No | When given, keep only tracks by these artists (case-insensitive; episodes are dropped under this filter) | |
| playlist_name | No | Playlist name (default "Queue snapshot <date>") | |
| response_format | No | 'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API object | concise |