reorderPlaylistItems
Move a range of tracks within a Spotify playlist to a new position by defining the start index, number of tracks, and insert-before index.
Instructions
Reorder a range of tracks within a Spotify playlist by moving them to a new position
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"playlistId": "<playlistId>",
"rangeStart": "<rangeStart>",
"insertBefore": "<insertBefore>"
},
"name": "reorderPlaylistItems"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| playlistId | Yes | The Spotify ID of the playlist | |
| rangeStart | Yes | The position of the first item to move (0-based index) | |
| snapshotId | No | The playlist snapshot ID to target a specific version (optional) | |
| rangeLength | No | Number of consecutive items to move (defaults to 1) | |
| insertBefore | Yes | The position where the items should be inserted (0-based index) |