search_files
Search files recursively under an allowed path using a regular expression pattern. Skips protected files and supports glob filtering and result limits for targeted matches.
Instructions
Search a regular expression in files under an allowed path (recursive, skips protected files).
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>",
"path": "<path>"
},
"name": "search_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | * | |
| path | Yes | ||
| pattern | Yes | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |