Music Search Library
music_search_librarySearches the tracks of the user's Music library. field narrows the search to title, artist or album; the default, any, searches every text field the Music app's own search does. Returns each track's id, title, artist, album and length; the id is what music_play and music_add_to_playlist take. Only the library is searched, not the Apple Music catalog. Opens the Music app when it is closed.
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": "music_search_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | No | Where to look (default any). | |
| limit | No | Tracks to return (default 25, max 100). | |
| query | Yes | Text to look for. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| tracks | Yes | ||
| truncated | Yes | True when more tracks matched than were returned. | |
| total_matches | Yes |