Control Playback
control_playbackControl Spotify playback by playing, pausing, skipping tracks, seeking, adjusting volume, and toggling shuffle or repeat on a Premium account with 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 or episodes to play (action='play'; ignored when
context_uri is set). Bare IDs are tracks; pass spotify:episode: URIs
or episode share URLs for podcast episodes.
context_uri: Album, playlist, artist or show 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "control_playback"
}
}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 | ||
| currently_playing_type | No |