Control Playback
control_playbackControl Spotify playback: play, pause, skip, seek, adjust volume, toggle shuffle, or set repeat. Requires Premium and an active device.
Instructions
Control Spotify playback. Requires Premium and an active device.
Args:
action: 'play', 'pause', 'next', 'previous', 'seek', 'volume', 'shuffle' or 'repeat'
track_ids: Tracks to play (action='play'; ignored when context_uri is set)
context_uri: Album/playlist/artist URI to play (action='play')
position_ms: Position in milliseconds (required for action='seek')
volume_percent: Volume 0-100 (required for action='volume')
state: 'on'/'off' for shuffle; 'track'/'context'/'off' for repeat
device_id: Target device (default: the currently active one)
Returns:
Last observed PlaybackState, possibly unconfirmed.
Confirmation is best effort: at most five post-action reads with brief waits.
Stale state or a later read failure returns the last observation. Checks do not
verify every requested track, context or device transition.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | ||
| action | Yes | ||
| device_id | No | ||
| track_ids | No | ||
| context_uri | No | ||
| position_ms | No | ||
| volume_percent | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track | No | ||
| device | No | ||
| repeat | No | off | |
| volume | No | ||
| shuffle | No | ||
| is_playing | Yes | ||
| progress_ms | No |