Play Song
play_songPlays a requested song by name: searches Liked Songs first and falls back to the full Spotify catalog when no match is found.
Instructions
Play a song by name - Liked Songs first, then the whole catalog.
This is the tool to use when the user says "play ": it looks the title/artist up in the Liked Songs and, if nothing matches, falls back to the Spotify catalog search.
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_song"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | which match to use when several match (0 = best match). | |
| query | Yes | title and/or artist, e.g. "one more time daft punk". | |
| device | No | device name to play on ("" = the device that is active). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||