add_tracks_to_playlist
Add one or more tracks to a Spotify playlist by providing the playlist ID and track URIs. Optionally specify an insertion position.
Instructions
Add one or more songs to an existing playlist.
Args:
playlist_id: A Spotify playlist ID, URI, or URL.
track_uris: List of track IDs, spotify:track:... URIs, or track URLs.
position: Optional zero-based index to insert at (defaults to the end).
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": {
"playlist_id": "<playlist_id>",
"track_uris": "<track_uris>"
},
"name": "add_tracks_to_playlist"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| position | No | ||
| track_uris | Yes | ||
| playlist_id | Yes |