add_to_queue
Queue a Spotify track for playback by passing its track URI or ID.
Instructions
Add a track to the user's active Spotify playback queue.
Parameters
uri : str
Spotify track URI (spotify:track:<id>) or bare track ID.
Returns
dict
{"status": "queued", "uri": "<full_spotify_uri>"}
Raises
spotipy.SpotifyException Propagated if the Spotify API returns a non-2xx response.
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": {
"uri": "<uri>"
},
"name": "add_to_queue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||