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.
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 |