spotify

Music. Any music word (play, pause, resume, skip, louder, shuffle, like this song, what is playing) means this. Plays songs, artists, albums, playlists and liked songs on the user's Spotify devices.

Tools

ToolTagsAsks first
nowreadsno
devicesreadsno
searchreadsno
inforeadsno
play_likedwritesno
playwritesyes
pausewritesyes
nextwritesyes
previouswritesyes
volumewritesyes
restore_volumewritesyes
play_uriwritesyes
play_songwritesyes
restore_playbackwritesyes
transferwritesyes
shufflewritesno
repeatwritesno
queuewritesno
likewritesno
unlikewritesno

Asks first comes from autonomy in plugin.yaml. The core can raise it (see Approvals).

Limits

Your Spotify account through Spotify's web service, on any device. Needs Premium to control playback. Sign in once under Settings, Integrations. play_song searches precisely, wakes a device, checks sound really started (6 looks), restores the old music on failure, and the last seen music line is added to the index.

Signing in to Spotify

The Spotify plugin controls your Spotify account through Spotify's own service, so it works on any device that is playing (your phone, a speaker, the desktop app). It does not control this computer. Playback control needs Spotify Premium.

One-time setup:

  1. Go to developer.spotify.com/dashboard and make an app (free). Copy its Client ID. No secret is needed.
  2. In that app's settings, add the Redirect URI the page shows: app.assistant://spotify in the phone app (or http://127.0.0.1:8000/ when testing the page on the Mac).
  3. In the app: Settings, Integrations, Spotify, paste the Client ID, tap Connect Spotify, and approve in the browser. The browser returns to the app, which finishes the sign-in.

The core keeps the tokens (SPOTIFY_REFRESH_TOKEN and friends, in the secrets table), refreshes the short-lived one itself, and never shows them to the plugin folder or the model. Disconnect removes them. Tokens are stored in plain text like other secrets (see Next).

If playback commands say "No Spotify device is active", open Spotify on the phone and play something for a second, then try again.

How Spotify playback stays reliable