Overview
Media actions control music playback on Spotify and Apple Music, plus system volume.| Action | Description | Enabled by Default |
|---|---|---|
play_on_spotify | Search and play a song/artist on Spotify | ✓ |
play_apple_music | Play a song on Apple Music by name | — |
play_pause_music | Play or pause music (Music.app or Spotify) | ✓ |
next_track | Skip to the next track | ✓ |
previous_track | Go to the previous track | — |
get_now_playing | Get the currently playing song and artist | ✓ |
set_music_volume | Set music app volume (not implemented in current codebase) | — |
play_on_spotify
Search and play a specific song, artist, album, or playlist on Spotify.Parameters
Song name, artist, album, or playlist
Search type:
track, artist, album, or playlistExamples
Implementation Details
AppleScript code (src/actions/media_actions.cpp:70-107)
AppleScript code (src/actions/media_actions.cpp:70-107)
The action constructs a Spotify search URI and uses AppleScript to open and play:Requirements:
- Spotify.app must be installed
- 1.5 second delay allows Spotify to load search results before playing
- Timeout: 10 seconds
src/actions/media_actions.cpp:70-107Response
play_apple_music
Play a song on Apple Music by searching your library.Disabled by default. Enable in the Actions panel or via CLI if you use Apple Music.
Parameters
Song name or artist
Examples
Implementation Details
AppleScript code (src/actions/media_actions.cpp:110-139)
AppleScript code (src/actions/media_actions.cpp:110-139)
Searches your local Music library (not Apple Music streaming catalog):Fallback: If song not found in library, opens Apple Music web search.Timeout: 8 secondsSource:
src/actions/media_actions.cpp:110-139Response
play_pause_music
Toggle play/pause on the currently active music app (Music.app or Spotify).Parameters
None — this action takes no parameters.Examples
Implementation Details
AppleScript code (src/actions/media_actions.cpp:14-25)
AppleScript code (src/actions/media_actions.cpp:14-25)
Tries Music.app first, then Spotify:Source:
src/actions/media_actions.cpp:14-25Response
next_track
Skip to the next track on the currently active music app.Parameters
None.Examples
Implementation Details
AppleScript code (src/actions/media_actions.cpp:27-30)
AppleScript code (src/actions/media_actions.cpp:27-30)
src/actions/media_actions.cpp:27-30previous_track
Go back to the previous track on the currently active music app.Disabled by default. Enable if you frequently use previous track.
Parameters
None.Examples
Implementation Details
AppleScript code (src/actions/media_actions.cpp:32-35)
AppleScript code (src/actions/media_actions.cpp:32-35)
src/actions/media_actions.cpp:32-35get_now_playing
Get the currently playing song and artist from Music.app or Spotify.Parameters
None.Examples
Implementation Details
AppleScript code (src/actions/media_actions.cpp:37-68)
AppleScript code (src/actions/media_actions.cpp:37-68)
Checks Music.app first, then Spotify:Source:
src/actions/media_actions.cpp:37-68Response
System Volume
For system volume control (not music app volume), use theset_volume action from the System Actions category:
Voice Examples
Playing music on Spotify
Playing music on Spotify
You: “Play some jazz on Spotify”RCLI: “Playing jazz on Spotify.”(Spotify opens and starts playing jazz search results)
Controlling playback
Controlling playback
You: “Pause the music”RCLI: “Toggled play pause on Spotify.”You: “Skip this song”RCLI: “Skipped to next track on Spotify.”
Checking now playing
Checking now playing
You: “What song is playing?”RCLI: “Now playing: Bohemian Rhapsody by Queen.”
Troubleshooting
Spotify not installed
Spotify not installed
If you try to use Fix: Install Spotify.app or use
play_on_spotify without Spotify installed:play_apple_music instead.Apple Music library search
Apple Music library search
play_apple_music only searches your local library, not the Apple Music streaming catalog.Fix: If the song isn’t in your library, the action opens Apple Music web search as a fallback.No music app running
No music app running
If neither Music.app nor Spotify is running:Fix: Open Music.app or Spotify before using playback controls.