Use this skill to control a Mopidy music system through Mopidy's JSON-RPC API in a predictable, scriptable way.
Configure the Mopidy JSON-RPC endpoint before use.
Recommended environment variable:
bash
export MOPIDY_URL="https://your-mopidy-host.example.com/mopidy/rpc"
Typical endpoint shape:
https://your-host.example.com/mopidy/rpcSome installations serve Iris under /iris/, but this skill should control Mopidy through /mopidy/rpc.
Helper scripts:
scripts/mopidy.shscripts/match_top_tracks.pybash
scripts/mopidy.sh current
scripts/mopidy.sh state
bash
scripts/mopidy.sh queue
bash
scripts/mopidy.sh search "The Beths"
scripts/mopidy.sh search "David Bowie Blackstar"
Use search results to identify the correct URI before adding something.
bash
scripts/mopidy.sh add-track backend:song:example
scripts/mopidy.sh add-album backend:album:example
For natural requests like “queue some Beths”, search first, then choose the best matching track or album URI.
bash
scripts/mopidy.sh playlists
bash
scripts/mopidy.sh add-playlist-to-queue backend:playlist:example
bash
scripts/mopidy.sh play
scripts/mopidy.sh play-track backend:song:example
scripts/mopidy.sh pause
scripts/mopidy.sh next
scripts/mopidy.sh previous
scripts/mopidy.sh clear
For prompts like:
Use this workflow:
Use scripts/match_top_tracks.py to help match externally sourced song names against the library.
Mopidy playlist APIs and backends can differ.
Safe approach:
Do not assume backend-specific shortcut behavior unless it has been tested on the target Mopidy server.
Read references/api-notes.md if you need endpoint details, common Mopidy methods, or URI guidance.