Find files by name
find_filesFinds files by glob (*.js, src/**/*.ts, config*) or a substring in the name. Service folders (node_modules, .git, .mcp) are skipped.
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) | . |
| sort | No | Newest files first (mtime) or alphabetical (path) | mtime |
| 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 |