list-keywords
Retrieve a catalog of keywords and their photo counts, sorted by most used, to discover exact spellings or identify popular tags before filtering queries.
Instructions
Use when: you want the catalog of keywords (tags) in the library — e.g. to discover exact keyword spellings before filtering query by keyword, or to see which tags are most used. Pass limit for the top-N. Returns: keywords with their photo counts, sorted most-used first. Do not use when: you want photos carrying a keyword — use query with the keyword filter; or you want people/faces rather than tags — use list-persons.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Top-N keywords | |
| library | No | Path to a .photoslibrary (default: system Photos library) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| keywords | No |