find_files
Search directories for files matching glob patterns, with controls for search depth and hidden file inclusion.
Instructions
Searches for files matching a pattern in a directory.
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": {
"path": "<path>",
"pattern": "<pattern>"
},
"name": "find_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Directory to search in. Can be absolute, relative to active directory, or use ~ for home directory. | |
| pattern | Yes | Glob pattern to match files (e.g., '*.swift' or '**/*.json') | |
| maxDepth | No | Maximum directory depth to search | |
| showHidden | No | If true, include hidden files in the search |