search_files
Search for specific regex patterns within files in a specified directory using a read-only glob filter. Ideal for locating text matches in file systems.
Instructions
Search for a regex pattern within files in a specified directory (read-only).
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": {
"regex": "<regex>"
},
"name": "search_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_pattern | No | Glob pattern to filter files (e.g., '*.ts'). Defaults to all files ('*'). | * |
| path | No | Relative path of the directory to search in. | . |
| regex | Yes | The regex pattern to search for. |