scan_folder
Summarize a folder's contents by type, age, and size to reveal what dominates and where bulk resides. Flags protected files and excludes system folders for safe cleanup planning.
Instructions
Summarize a folder: what dominates it, how old everything is, and where the bulk sits.
Call this first. It returns a rollup rather than a file list, so it stays cheap on folders with tens of thousands of files. Follow with list_files to see individual files matching whatever the summary suggests is worth looking at.
Two things to keep in mind. Size does not imply disposability: large media is often what the user most wants to keep, so age matters more than size. And files matching identity, legal, tax, or medical naming are counted here but marked protected; never suggest removing them.
Cloud-synced folders, system folders, app bundles, and build directories are excluded; the output reports how many were skipped.
path: absolute path to the folder, for example /Users/you/Downloads max_depth: how many levels of subfolder to descend. Default 3.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| max_depth | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |