find_files
Search a directory tree recursively by glob pattern to locate files by name, returning newest-first matches with size and modification time while honoring ignore rules.
Instructions
Find files by name across a directory tree.
Walks the directory recursively and returns files whose names match the
glob pattern, newest-first, with size and modification time. Honors
nested .gitignore/.ignore rules (respect_gitignore=false to disable) and
never reads file contents.
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": {
"absolute_dir_path": "<absolute_dir_path>",
"pattern": "<pattern>"
},
"name": "find_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fuzzy | No | Enable fuzzy name matching for typo'd file names (null = false; e.g. 'confg.py' finds 'config.py'). | |
| pattern | Yes | fnmatch glob matched against file names (e.g. '*.log', 'config*.py'). | |
| max_depth | No | How many levels deep to recurse (default: unbounded, hard-capped by server config). | |
| max_results | No | Maximum files returned (1-500). Defaults to server config (100). | |
| include_hidden | No | Include dot-files and dot-dirs (default: false). | |
| absolute_dir_path | Yes | The absolute path to the directory to search. | |
| respect_gitignore | No | Honor nested .gitignore/.ignore files when filtering (default: server default, true). Set false to find ignored files too. |