fs_search
Search for files using glob patterns and optionally filter results by content with a regular expression.
Instructions
Search for files using glob patterns and optionally filter by content regex.
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": "fs_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Glob pattern (e.g., '**/*.ts'). | |
| directory | Yes | The root directory to search in. | |
| contentRegex | No | Optional regex to filter files by content. |