reorder_playlist_items
Move a range of playlist items to a new position by specifying the start index, range length, and destination. Handles index shifts when moving items downward, making playlist reordering predictable.
Instructions
Move a range of items within a playlist. Spotify semantics: when insert_before > range_start, the effective destination shifts down by range_length because the moved range is lifted out first (e.g. moving [2] to insert_before=4 lands it AT index 3). Also covers: playlist_resequence (full resequence), playlist_move_block — See also: playlist_resequence, playlist_move_block.
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 | |
| range_start | Yes | Index of the first item to move | |
| range_length | No | Number of items to move. Default: 1 | |
| insert_before | Yes | Index to insert the range before |