query
Search photos by album, keyword, person, date range, title, or flags. Get matching photo summaries with UUIDs for further actions.
Instructions
Use when: you need to find photos matching one or more filters — album, keyword, person, ISO date range, favorite/hidden flags, photo/movie type, or title/description substrings — and get back a list of matches. This is the primary search/discovery tool; start here when you don't already have a UUID. Returns: a count plus photo summaries (UUID, filename, date, dimensions, favorite/hidden/movie flags) — feed a UUID into get-photo for full metadata or into export to copy files. Do not use when: you already have a UUID and want full metadata for that one photo — use get-photo; or you just want the catalog of album/keyword/person names — use list-albums / list-keywords / list-persons.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | No | Specific UUIDs to fetch | |
| album | No | Album name(s); ANY-match | |
| limit | No | Cap the number of results | |
| title | No | Substring match on title | |
| hidden | No | Only hidden photos | |
| movies | No | Include movies | |
| person | No | Person name(s); ANY-match | |
| photos | No | Include still photos | |
| toDate | No | ISO 8601 upper bound on photo date | |
| keyword | No | Keyword(s); ANY-match | |
| library | No | Path to a .photoslibrary (default: system Photos library) | |
| favorite | No | Only favorites | |
| fromDate | No | ISO 8601 lower bound on photo date | |
| notHidden | No | Exclude hidden photos (default behavior) | |
| description | No | Substring match on description | |
| notFavorite | No | Exclude favorites |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| photos | No |