roon-action
Control Roon playback: play/queue/shuffle/start radio for media, transport (pause, stop, next, previous), playback settings (shuffle, repeat, seek, auto-radio), volume, mute, mute all, standby, and play from a specific queue position. Library actions require a `reference` from a prior roon_search result. For zone grouping, use the roon_config tool instead.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-09
- Stars
- ★ 1
- Forks
- 1
01 前言 Front Matter
- name
- roon-action
- description
- Control Roon playback: play/queue/shuffle/start radio for media, transport (pause, stop, next, previous), playback settings (shuffle, repeat, seek, auto-radio), volume, mute, mute all, standby, and play from a specific queue position. Library actions require a `reference` from a prior roon_search result. For zone grouping, use the roon_config tool instead.
- requires_tool
- roon_action
03 SKILL.md 正文
Execution guidance
- Library actions require the
referencefield fromroon_searchresults. Without a valid reference, the action fails. - References remain valid across searches. Perform all searches first, then act on references from any of them.
- Batch references from the same search into one
roon_actioncall. intended_item_categoryis a hint that helps disambiguate when an item could be more than one thing (e.g. if the track "Thriller" is required vs the album, set totrack). The hint is optional — useauto(the default) when the intended category is unambiguous, or if you are unsure of intent. For mixed scenarios (e.g. a combination of albums and tracks), set per-item viaintended_categoryon the item itself; per-item values override the request-levelintended_item_category.- When multiple versions or variations of a requested item appear, choose the closest match to what the user specified.
- Only specify the
zoneargument if the user request explicitly names one. Withoutzone, actions operate on the user's default zone (or group).
Library actions
Play Now, Add Next, Queue, Shuffle, Start Radio — all require media item reference(s) from roon_search.
Action × category — dispatch summary
The following table summarises how each action operates on different Roon item categories.
| Action | # items accepted | track / album / playlist / work | artist / composer |
|---|---|---|---|
Play Now |
Multiple | plays first item, queues remaining | not supported — use Shuffle instead |
Add Next |
1 | inserts next in queue | not supported |
Queue |
Multiple | appends to queue | not supported |
Shuffle |
Multiple | randomises across its tracks | shuffles tracks by this artist/composer only |
Start Radio |
1 | seeds a radio from the item | seeds a radio from the artist — can drift to similar artists |
Shuffle details
Shuffle first expands specified albums, playlists and works into their tracks, combines with any individual tracks supplied, then randomises the resulting pool. The count argument (if provided) controls how many tracks play:
- No
count— all expanded tracks play in random order. count=N— plays exactly N randomly selected tracks from the expanded pool. Use this for any "give me N random tracks from X, Y and Z" request.
Mixing artists/composers is not supported. A Shuffle call containing more than one artist/composer reference — or an artist/composer mixed with tracks, albums, playlists, or works — is rejected. To shuffle across multiple artists/composers, drill into Albums for each one and pass the album references to a single Shuffle call instead.
Error / notice handling from the dispatcher
When a request can't proceed, the dispatcher returns structured entries in output.errors[*] that indicate the nature of the problem(s). There are two kinds:
- Actionable errors detailing suggested corrective action — retry by following the guidance;
- Informational notices (e.g. if some item(s) were unavailable) — the other items in the same call still dispatch normally; report which specific items were unavailable to the user, but no retry is needed.
Queue actions
- play_from_here: jump to a specific track in the queue. Pass the
Q:-prefixed reference from the queue listing asqueue_ref(e.g.queue_ref="Q:a3f7c"). The reference is resolved to the Roon queue item ID automatically. If there is already a queue listing in your execution trace, use the references from there without re-fetching the queue, as it may have changed since the user saw it.
Queue manipulation is limited by the Roon API. The only queue actions available are: play_from_here (jump to a position), Queue (append from library), and Add Next (insert next from library). Removing individual items, reordering, inserting at specific positions, and clearing the queue are not possible due to Roon API limitations. If a user requests an unsupported queue operation, explain that Roon's API doesn't currently support it.
Playback settings
- set_shuffle, set_repeat, seek: self-explanatory.
- set_auto_radio: toggle whether Roon plays radio after the queue ends. Requires
auto_radio(true/false) andzone.
Advanced controls
- mute_all: mute every output across all zones at once.
- unmute_all: unmute every output across all zones at once.
- standby, convenience_switch: put an output into standby or switch its source input.
04 同仓库更多 Skills
web-search
Search the public web for facts, context, and references. Use for information that cannot be retrieved from a Roon Search.
roon-status
Read-only Roon state: zone status with seek position, queue track listing with references.
roon-search
Browse and search the Roon music library one level at a time. Roon text search fuzzy-matches specific titles and names in the following categories: Tracks, Albums, Artists, Playlists, Composers, Works. For vague or genre-based requests, either use your own knowledge or use web_search to retrieve needed information.
roon-config
Manage Roon zone configuration: set/get default zone, manage zone aliases (set, remove, rename, list, clear), group/ungroup zones, transfer playback between zones.
result-fetch
Retrieve cached items by result_handle (format: res_NNNNN) from the search_history section. Only use handles listed in search_history.
listening-history
Look up what music was played and when, across zones, by date/time range. Use today's date from the prompt to resolve relative ranges ("last Tuesday", "this morning", "yesterday evening"). This is the historical record — distinct from roon_status, which reports what is playing now or the last track in a zone.