remove_duplicate_playlist_items
Removes duplicate tracks from a Spotify playlist, keeping the first occurrence; optionally collapses same-song entries under different URIs. Supports dry-run preview and confirmation for large removals.
Instructions
Remove duplicate items from a playlist: keeps the first occurrence of each track and removes later repeats. Exact URI repeats are always cleaned; pass include_relinked=true to also collapse same-song entries that appear under different URIs (remasters/relinks). Supports dry_run; removals of 10+ items ask for confirmation via elicitation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Preview only: validate inputs and describe exactly what would change without performing it | |
| playlist_id | Yes | Playlist ID | |
| include_relinked | No | Also collapse same-song duplicates under different URIs (relinks/remasters). Default false — only exact URI repeats are removed. |