apple_spotify
Control Spotify playback on your Mac. Play, pause, skip tracks, adjust volume, search music, and manage playlists.
Instructions
Control Spotify. Actions: play, pause, next, prev, now_playing, set_volume, shuffle, playpause, play_playlist, list_playlists, like, repeat_off, repeat_on, search, play_track, current_album, current_artist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | No | Spotify track URI (e.g. "spotify:track:4iV5W9uYEdYUVa79Axb7Rh") | |
| name | No | Playlist name to search for | |
| level | No | Volume level 0-100 | |
| query | No | Search query | |
| action | Yes | play: Start Spotify playback; pause: Pause Spotify playback; next: Skip to next track on Spotify; prev: Go to previous track on Spotify; now_playing: Get info about the currently playing Spotify track; set_volume: Set Spotify volume; shuffle: Toggle shuffle mode on Spotify; playpause: Toggle play/pause on Spotify; play_playlist: Search for a playlist by name in Spotify (opens Spotify search); list_playlists: Open your Spotify playlists collection (AppleScript cannot list playlists directly); like: Like/save the current track (note: limited support via AppleScript); repeat_off: Set Spotify repeat mode to off; repeat_on: Set Spotify repeat mode to on; search: Search Spotify for a query (opens Spotify search); play_track: Play a specific Spotify track by URI; current_album: Get the album name of the currently playing Spotify track; current_artist: Get the artist of the currently playing Spotify track | |
| confirm | No | Set to true to confirm a protected/destructive action. Without this, protected actions return a preview instead of executing. |