list-folders
Get the folder hierarchy of an Apple Photos library, showing each folder's title, parent folder, album count, and subfolder count.
Instructions
Use when: you want the library's folder hierarchy — the containers that hold albums and subfolders — to understand how albums are nested. Returns: every folder's title, parent folder, album count, and subfolder count. Do not use when: you want the albums themselves (with their photo counts) — use list-albums; or you just want a total folder count — use library-info.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| library | No | Path to a .photoslibrary (default: system Photos library) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| folders | No |