add_to_playlist
Add tracks to a Spotify playlist by specifying playlist ID and track URIs. Supports optional insertion position for precise placement.
Instructions
Add one or more tracks to a playlist. Use track URIs from search results (e.g., 'spotify:track:...').
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>",
"uris": "<uris>"
},
"name": "add_to_playlist"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uris | Yes | List of Spotify track URIs to add (e.g., ['spotify:track:4iV5W9uYEdYUVa79Axb7Rh']) | |
| position | No | Position to insert tracks (0-based). Omit to append at end. | |
| playlistId | Yes | Playlist ID from get_playlists or create_playlist |