Search Files
search_filesLocate files by glob filename pattern, optionally filtering results by a regular expression matched against file contents.
Instructions
Find files by glob name pattern and, optionally, a regular expression on their contents.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | Optional regular expression that file contents must match | |
| pattern | No | Glob pattern matched against the file name, e.g. *.java | |
| directory | No | Directory to search (defaults to the working directory) | |
| recursive | No | Recurse into subdirectories (default false) |