scan_large
Scan a directory for files exceeding a size threshold, then return the largest files in descending order to help identify disk space hogs.
Instructions
列出指定目录下体积大于 min_mb MB 的文件,按大小降序返回前 top_n 个。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | Yes | 要扫描的目录绝对路径(如 E:/pycharm/PythonProject) | |
| top_n | No | 最多返回的文件数,默认 50 | |
| min_mb | No | 仅列出大于此大小(MB)的文件,默认 100 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |