search_files
Finds files by regular expression pattern in allowed directories, with optional depth limit, to locate matching filenames.
Instructions
Search for files matching a pattern (regex) within allowed directories
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": {
"directory": "<directory>",
"pattern": "<pattern>"
},
"name": "search_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Regular expression pattern to match file names | |
| maxDepth | No | Maximum depth to search (default: 5) | |
| directory | Yes | Directory to search in (must be within allowed directories) |