by @rbouschery
Control Spotify on macOS. Use for playing music, controlling playback, and getting track information.
This skill provides commands to control Spotify on macOS via AppleScript.
All scripts are in the ./scripts/ directory (relative to this file). Execute them via bash from the plugin root.
| Script | Purpose | Arguments |
|---|---|---|
play.sh | Resume playback | none |
pause.sh | Pause playback | none |
toggle-playback.sh | Toggle play/pause | none |
next-track.sh | Skip to next track | none |
previous-track.sh | Go to previous track | none |
play-uri.sh | Play specific URI | <spotify_uri> [context_uri] |
| Script | Purpose | Arguments |
|---|---|---|
search.sh | Open Spotify search visually | <query> |
Agent-Assisted Search (Recommended): To search and play automatically, use web search to find Spotify URLs:
site:open.spotify.com [query] (e.g., "site:open.spotify.com bohemian rhapsody")https://open.spotify.com/track/6l8GvAyoUZwWDgF1e4822w)play-uri.sh "https://open.spotify.com/track/..."This works for tracks, albums, playlists, and artists.
| Script | Purpose | Arguments |
|---|---|---|
get-current-track.sh | Get current track info | none |
get-player-state.sh | Get player state | none |
| Script | Purpose | Arguments |
|---|---|---|
get-volume.sh | Get current volume | none |
set-volume.sh | Set volume level | <volume 0-100> |
volume-up.sh | Increase volume by 10 | none |
volume-down.sh | Decrease volume by 10 | none |
| Script | Purpose | Arguments |
|---|---|---|
get-position.sh | Get current position | none |
set-position.sh | Seek to position | <seconds> |
fast-forward.sh | Forward 10 seconds | none |
rewind.sh | Rewind 10 seconds | none |
| Script | Purpos...