scan_by_ext
Scan any directory for files with specified extensions, defaulting to common junk types like .tmp, .log, .cache, .bak, and .old, to identify cleanup candidates.
Instructions
按文件后缀扫描(默认扫常见垃圾后缀 .tmp/.log/.cache/.bak/.old)。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dirs": "<dirs>"
},
"name": "scan_by_ext"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dirs | Yes | 要扫描的一个或多个目录绝对路径 | |
| exts | No | 目标后缀列表,可自定义,如 [".tmp", ".log"] |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |