sonos_add_to_queue
Insert a track URI into the playback queue with options to play next or at a specific position.
Instructions
Add a track URI to the playback queue. Supports music library URIs and streaming service URIs. Optional metadata in DIDL-Lite XML format.
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": {
"deviceId": "<deviceId>",
"uri": "<uri>"
},
"name": "sonos_add_to_queue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | Yes | Track URI (e.g., x-file-cifs://..., x-sonos-spotify:...) | |
| deviceId | Yes | Room name, UUID, or IP address | |
| metadata | No | Optional DIDL-Lite metadata XML | |
| playNext | No | Add as next track to play | |
| position | No | Insert at specific position (1-based), or append if not specified |