Search artists and songs
searchFind artists and songs by name in your listening history and get all-time play counts. Resolve names into IDs needed by artist_history and track_history.
Instructions
Find artists and songs in the stored listening history by name (case-insensitive substring), with all-time play counts. Use this first to turn a name into the id that artist_history and track_history take. An artist with id null is known only from the imported export: pass its name to artist_history instead.
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": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Results per list, default 10 | |
| query | Yes | Part of an artist or song name | |
| artist | No | Only songs whose primary artist name contains this |