list-folders
Get the folder hierarchy of your Apple Photos library to see how albums and subfolders are nested. Shows each folder's title, parent, and counts of albums and subfolders.
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 |