重复文件查找
find_duplicatesFinds duplicate files in a directory by size grouping and SHA-256 confirmation, returning duplicate groups and reclaimable space without deleting anything.
Instructions
找出目录里的重复文件:先按文件大小分组,只对同尺寸的候选算 sha256 确认,返回重复组、可回收空间。适合清理相册里重复保存的图片。只读,不删除。
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": {
"dir_path": "<dir_path>"
},
"name": "find_duplicates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir_path | Yes | 目录绝对路径 | |
| max_files | No | 最多扫描多少个文件,默认 3000 | |
| min_bytes | No | 只检查不小于该字节数的文件,默认 102400(100 KiB) |