search_files
Search local files for a regex pattern, optionally filtered by file type or directory; uses ripgrep when available and grep as fallback.
Instructions
Search for a pattern in files. Uses ripgrep if available, falls back to grep.
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": "search_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | File type filter (e.g. *.ts) | |
| path | No | Directory to search (default: home) | |
| pattern | Yes | Regex pattern to search for |