Find duplicate files
find_duplicate_filesScan a folder recursively to find duplicate files by content hash, listing each duplicate group's locations, count, and wasted disk space. Handles large trees with a 20,000-file scan cap.
Instructions
Recursively scan a folder for duplicate files (same content, by hash - not just same name) and report each duplicate group's file name, every location, and the count, plus total wasted disk space. Stops after 20000 files scanned on a very large tree and reports truncated: true if it hit that cap.
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": {
"path": "<path>"
},
"name": "find_duplicate_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Folder to scan, or a friendly name like "documents" |