list_files
List files in a folder filtered by age, size, type, or subfolder to identify stale or large items. Returns metadata only, never reads contents, so you can inspect before deciding what to clean up.
Instructions
List individual files in a folder, filtered by age, size, type, or subfolder.
Use after scan_folder to see the actual files behind a summary line, for example the ones not opened in over a year, or the largest videos.
Each row is: age since last opened, size, and path relative to the folder. A leading asterisk marks a protected file (identity, legal, tax, or medical naming). Report those if the user asked to see them, but never put them forward as something to delete or move.
Returns metadata only. This tool never reads file contents.
path: absolute path to the folder. not_opened_days: only files untouched for at least this many days. 0 for all. min_size_mb: only files at least this large. 0 for all. file_type: one of documents, spreadsheets, images, video, audio, archives, installers, code, other. Or a bare extension such as png. Empty for all. subfolder: restrict to one immediate subfolder by name. Empty for all. sort_by: size, oldest (least recently opened), or newest. Default size. limit: rows to return, capped at 100. Default 25.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| limit | No | ||
| sort_by | No | size | |
| file_type | No | ||
| max_depth | No | ||
| subfolder | No | ||
| min_size_mb | No | ||
| not_opened_days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |