Find files by name
find_filesLocate files by glob pattern or partial name across a directory tree, skipping service folders like node_modules, .git, and .mcp. Use it to find source files, configs, or docs quickly.
Instructions
Finds files by glob (*.js, src/**/*.ts, config*) or a substring in the name. Service folders (node_modules, .git, .mcp) are skipped.
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": {
"pattern": "<pattern>"
},
"name": "find_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Where to search (defaults to root) | . |
| ignore | No | Additional names/globs to skip | |
| pattern | Yes | Glob (`*.md`, `**/*.js`) or part of the name | |
| max_depth | No | Maximum depth | |
| max_results | No | Maximum number of results | |
| include_dirs | No | Include folders in the results |