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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "playMusic"
}
}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 |