Find photos by description
search_imagesFind photos in a folder by describing what they show. Matches JPEG and PNG images locally without uploading them and returns file paths ranked by relevance.
Instructions
Find the photos in a folder that best match a description, such as "a dog on a beach" or "receipt from a restaurant", with CLIP, locally. Photos are never uploaded. JPEG and PNG, subfolders included; iPhone HEIC photos are not read. The first search of a folder embeds every photo, about 20 ms each on a desktop CPU; later searches reuse that until files change. Returns the photos' paths best first, with scores that are only meaningful as a ranking. For text in documents or code use search_folder.
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": {
"path": "<path>",
"query": "<query>"
},
"name": "search_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of the folder of photos. | |
| query | Yes | What the photo shows, in natural language. | |
| top_k | No | How many photos to return. Default 5. |