Find duplicate media files
find_duplicate_media_filesFind duplicate media files by identical content in a folder and subfolders, return duplicate groups with wasted bytes, and report storage freed by deleting extra copies without deleting anything.
Instructions
Find files with identical content in a folder (and, by default, its subfolders), whatever their names: files of equal size are compared by MD5 checksum. Returns groups of identical files (largest waste first) with the size of one copy and wasted_bytes, the bytes that deleting the extra copies would free. It only reports; nothing is deleted. Reading large folders can take a while. Works on files on disk; needs neither Premiere Pro nor ffmpeg.
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": {
"folder": "<folder>"
},
"name": "find_duplicate_media_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kinds | No | Only files of these kinds (decided by extension), e.g. ["video"]. Default: all three. | |
| folder | Yes | Absolute path of the folder to search. | |
| recursive | No | Also search subfolders. Default true. | |
| extensions | No | Only files with these extensions, without the dot, e.g. ["mp4", "mov"]. Default: every known video, audio and image extension. | |
| max_results | No | Maximum duplicate groups to return. When there are more, the result has truncated=true and the total count. Default 200. | |
| min_size_bytes | No | Ignore files smaller than this many bytes. Default 1. |