upnext
v0.3.1One audio queue across Spotify, the browser, local files and whatever is already playing.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
media_now
What is playing right now — including audio this machine is playing outside the queue, such as a browser tab.
media_queue
Show the queue, with the id of each entry.
media_enqueue
Add something to the queue. Accepts a link, a file path, a Spotify URI, or a plain description to be resolved later. Use position to play it next rather than last.
| Parameter | Type | Description |
|---|---|---|
item * | string | A link, a file path, a spotify: URI, or a description |
position | string |
media_play
Start or resume playback. With an id, plays that entry now. With nothing, resumes or starts the queue.
| Parameter | Type | Description |
|---|---|---|
id | string |
media_pause
Pause playback.
media_next
Skip to the next entry.
media_seek
Jump to a position in the current track. Fails if the backend cannot seek.
| Parameter | Type | Description |
|---|---|---|
seconds * | number |
media_move
Reorder the queue. Both ids come from media_queue.
| Parameter | Type | Description |
|---|---|---|
id * | string | the entry to move |
after | string | put it after this entry; omit to put it next |
media_remove
Remove an entry from the queue, by id.
| Parameter | Type | Description |
|---|---|---|
id * | string |
media_search
Search the sources that can search. Returns ids you can pass to media_enqueue as a uri.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
limit | integer |
media_adopt_current
Put whatever this machine is already playing — a browser tab, another app — into the queue, so your entries start when it finishes instead of cutting across it.
media_setup
What audio sources are wired here, and what they can do — including whether a plain description can be resolved.