list-persons
Lists all named people identified by Photos face recognition, sorted by number of photos. Use to discover person names before filtering photos by person.
Instructions
Use when: you want the catalog of named people from Photos face recognition — e.g. to discover exact person names before filtering query by person, or to see who appears most. Pass limit for the top-N; unidentified faces appear as UNKNOWN. Returns: persons with their photo counts, sorted most-photographed first. Do not use when: you want photos of a person — use query with the person filter; or you want subject tags rather than people — use list-keywords.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Top-N persons | |
| library | No | Path to a .photoslibrary (default: system Photos library) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| persons | No |