dedupe_playlist_apply
Remove duplicate tracks from a Spotify playlist, keeping the first or last occurrence. Backs up items locally and atomically replaces the playlist; preview with dry-run, then commit.
Instructions
Remove duplicate uris from a playlist keeping the first (or last) occurrence: backs up the current items to a local file first, then rewrites via one atomic replace. dry_run defaults to TRUE. Quota: 🟢 GET + 1 local write + 1 PUT when committing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep | No | Which occurrence to keep. Default first | |
| dry_run | No | Preview only: perform the read side and return a PLAN without changing anything. Pass false to commit. Default true | |
| playlist_id | Yes | Playlist to dedupe (ID or spotify:playlist: URI) | |
| response_format | No | 'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API object | concise |