Search photos and videos
search_mediaSearch the synced OwAI library. Exact source, people and date filters are separate fields combined with AND semantics. Date-only values are UTC calendar days; captured_to includes that complete UTC day. Optional visual_query ranks approximate visual matches, including OCR-style text queries; it does not verify literal words. Each semantic or similarity video result appears once with segment_start_ms for its best-matching sampled frame; images and metadata-only results return null. Hosted visual and similarity searches cost search credits and return search_credits_exhausted when depleted. Metadata-only searches require no inference credits. Results include ownership and paths, not media bytes.
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_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Result order. Newest/oldest use the media file's modification time, which is stable across cloud downloads. | relevance |
| limit | No | Maximum results to return. | |
| offset | No | Number of matching results to skip for pagination. | |
| person | No | One exact recognized-person name. Always use when the user names one person. | |
| group_id | No | Only images in this stable automatic-group ID. | |
| device_id | No | Only assets indexed by this stable device ID, returned by list_media_devices. | |
| person_id | No | Stable ID for one recognized person. | |
| source_id | No | Only assets in this stable source ID, returned by inspect_library. | |
| group_name | No | Only images in a group with this exact case-insensitive name. | |
| media_type | No | Exact media-type filter. Always use when the user asks specifically for photos/images or videos. | |
| people_ids | No | Stable recognized-person IDs. Every listed person must occur in each result. | |
| captured_to | No | Inclusive captured-date upper bound. Always use for before, until, to, or end-date constraints. A YYYY-MM-DD value includes the complete UTC calendar day through 23:59:59 UTC. | |
| source_name | No | Exact case-insensitive user-assigned folder/source name. Use when the user mentions a named folder. | |
| people_names | No | Exact recognized-person names. Every listed person must occur in each result. | |
| visual_query | No | Unstructured visual content only. OCR-style queries such as text '<your text>' (for example: text 'STOP') rank approximate visual matches, not verified literal word matches or extracted transcripts. Never include people, captured dates, sources, collections, groups, favorites, indexing state, media type, or device. Omit for metadata-only search. | |
| captured_from | No | Inclusive captured-date lower bound. Always use for after, since, from, or start-date constraints. A YYYY-MM-DD value starts at 00:00:00 UTC. | |
| collection_id | No | Only assets in this stable collection ID. | |
| favorites_only | No | Return only assets marked as favorites. | |
| indexing_state | No | Filter by whether OwAI has finished creating a searchable embedding. | any |
| collection_name | No | Only assets in a collection with this exact case-insensitive name. | |
| duplicates_only | No | Return only images shown in OwAI's potential-duplicates view. | |
| has_reimagines_only | No | Return only source images that have generated reimagines. | |
| similar_to_asset_id | No | Stable OwAI asset ID for visual similarity search. Cannot be combined with visual_query. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | Yes | ||
| search_backend | Yes | ||
| coverage_warning | Yes | ||
| requested_filters | Yes |