find_duplicate_files
Identify and manage duplicate files by comparing sizes and contents across directories. Supports recursive searches, size filters, exclusion patterns, and output formats like text or JSON.
Instructions
Find duplicate files by comparing file sizes and contents.
Args:
path: Starting directory
recursive: Whether to search subdirectories
min_size: Minimum file size to consider (bytes)
exclude_patterns: Optional patterns to exclude
max_files: Maximum number of files to scan
format: Output format ('text' or 'json')
ctx: MCP context
Returns:
Duplicate file information
Input Schema
Name | Required | Description | Default |
---|---|---|---|
exclude_patterns | No | ||
format | No | text | |
max_files | No | ||
min_size | No | ||
path | Yes | ||
recursive | No |
Input Schema (JSON Schema)
{
"properties": {
"exclude_patterns": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Exclude Patterns"
},
"format": {
"default": "text",
"title": "Format",
"type": "string"
},
"max_files": {
"default": 1000,
"title": "Max Files",
"type": "integer"
},
"min_size": {
"default": 1,
"title": "Min Size",
"type": "integer"
},
"path": {
"title": "Path",
"type": "string"
},
"recursive": {
"default": true,
"title": "Recursive",
"type": "boolean"
}
},
"required": [
"path"
],
"title": "find_duplicate_filesArguments",
"type": "object"
}