Search metadata
search_metadataFind photos and videos by EXIF metadata such as city, country, camera model, date range, favorites, OCR text, people, tags, or albums when you know the exact criteria to match.
Instructions
Search assets by EXIF metadata fields. Use this when you know specific criteria like city, camera model, or date range. For natural language visual queries (e.g. 'sunset at the beach'), use search_smart instead. For browsing without criteria, use list_assets. Read-only.
Args:
city: City name from EXIF GPS reverse-geocoding (case-sensitive, e.g. 'Barcelona').
state: State or region name.
country: Country name (e.g. 'Spain', 'Egypt').
make: Camera manufacturer (e.g. 'Apple', 'Canon', 'Sony').
model: Camera model string (e.g. 'iPhone 14 Pro', 'EOS R5').
taken_after: ISO date — return only assets captured after this date.
taken_before: ISO date — return only assets captured before this date.
is_favorite: If true, only return favorites.
asset_type: 'IMAGE' or 'VIDEO'. Omit for both.
ocr: Text recognized inside the image (tickets, signs, documents). Needs
OCR enabled on the server — check with get_capabilities.
person_ids: Only assets showing ALL of these people (ids from list_people).
tag_ids: Only assets carrying these tags (ids from list_tags).
album_ids: Only assets inside these albums.
page: Page number, starting from 1 (default 1).
size: Results per page (1-200, default 50).
Returns: JSON with total match count, current page, and assets array with IDs, filenames, and dates.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ocr | No | ||
| city | No | ||
| make | No | ||
| page | No | ||
| size | No | ||
| model | No | ||
| state | No | ||
| country | No | ||
| tag_ids | No | ||
| album_ids | No | ||
| asset_type | No | ||
| person_ids | No | ||
| is_favorite | No | ||
| taken_after | No | ||
| taken_before | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |