playMusic
Start playback of a Spotify track, album, artist, or playlist by providing its URI, with automatic device selection and optional device targeting.
Instructions
Start playing a Spotify track, album, artist, or playlist. Pass a Spotify URI (e.g. spotify:track:xxx, spotify:album:xxx) via "uri". For albums/playlists you can also use "context_uri". Device is selected automatically — "deviceId" or "device_id" are optional.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Spotify ID of the item (use with type) | |
| uri | No | Spotify URI to play (e.g. spotify:track:xxx, spotify:album:xxx) | |
| type | No | Type of item (only needed with id) | |
| offset | No | Track offset within album/playlist (0-based) | |
| deviceId | No | Spotify device ID to play on (auto-selected if omitted) | |
| device_id | No | Alias for deviceId | |
| context_uri | No | Alias for uri — Spotify context URI for albums/playlists |