playMusic
Start playing a Spotify track, album, artist, or playlist by supplying its URI or ID. The playback device is selected automatically.
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, so "deviceId" and "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 | The Spotify device ID (auto-selected if omitted) | |
| device_id | No | Alias for deviceId | |
| context_uri | No | Alias for uri, the Spotify context URI for albums/playlists |