playlist_move_to_top
Move tracks that match URIs, artist, or name query to the front of a playlist in one atomic replace. Preview the plan with a dry run, then commit to apply without slow per-item reorders.
Instructions
Bring matching items (uris / artist / query) to the FRONT of a playlist in one atomic replace. Deliberately avoids Spotify reorder N+1 for large moves. Quota: 🟢 GET + 1 PUT.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Move items whose name contains this substring | |
| artist | No | Move every track by this artist (ID/URI or name) | |
| dry_run | No | Preview only: perform the read side and return a PLAN without changing anything. Default true — pass false to commit. | |
| match_uris | No | Track uris to move to the top | |
| playlist_id | Yes | Playlist to reorder (ID or spotify:playlist: URI) | |
| stable_order | No | Keep playlist order among matches and non-matches. Default true | |
| response_format | No | 'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API object | concise |