play
Search Spotify by track name and start it on the active device or a named device such as a Sonos room, then return the current track status.
Instructions
Search Spotify for a track by name and start playing it. Plays on the active device, or on a named device (e.g. a Sonos room) when 'device' is given. Returns the now_playing state.
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": {
"query": "<query>"
},
"name": "play"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Track name (and optionally artist) to search and play | |
| device | No | Optional device name to play on (partial match), e.g. Kitchen, Bedroom |