Search Library
search_my_librarySearch your library. It understands meaning as well as words: a picture is found when its prompt holds your words, and also when the picture itself fits what you describe, even if those words were never written, so describe what you are looking for in plain words. Each result says how it was found (foundBy: words, meaning, or both). Word matches are listed first, then pictures found by meaning alone. When more match than are listed, the answer says hasMore and nextOffset, the offset the next ones start at. A note on the answer says what the list leaves out (search by meaning was not available, so only word matches are listed, or it could not look at every picture): say so. Metadata only (id, prompt, date). Optional folderId scopes to one folder. Only your own assets are returned. This does NOT display images; to show/display results to the user, pass their ids to show_media.
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_my_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Default 20. Max 80 in one answer; use offset for more. | |
| query | Yes | What to look for, in plain words: words from a prompt, or what the picture shows. | |
| offset | No | Skip this many results: the nextOffset from the answer before, for the next ones. | |
| folderId | No | One folder only: its id from list_my_folders, or the folder's name as the person said it. |