library-info
Retrieve high-level statistics of your Photos library including total photos, movies, albums, folders, keywords, and persons counts, along with library path and version details.
Instructions
Use when: you want high-level stats about the whole library — total counts of photos, movies, albums, folders, keywords, and persons — or to confirm which library you're targeting before drilling in. Returns: the library path, Photos DB and Photos.app versions, and the six counts. Do not use when: you want the actual albums/keywords/persons rather than just their counts — use list-albums / list-keywords / list-persons; or you want to find specific photos — use query.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| library | No | Path to a .photoslibrary (default: system Photos library) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dbVersion | No | ||
| albumCount | No | ||
| movieCount | No | ||
| photoCount | No | ||
| totalCount | No | ||
| folderCount | No | ||
| libraryPath | No | ||
| personCount | No | ||
| keywordCount | No | ||
| photosVersion | No |