grep_search
Search files and directories for exact text or regular expression matches, with optional glob filters and case-insensitive matching. Locate code across Local, Remote-SSH, or WSL workspaces.
Instructions
Search for exact text or regular expression matches inside files or directories (works across Local and Remote-SSH/WSL).
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": {
"SearchPath": "<SearchPath>",
"Query": "<Query>"
},
"name": "grep_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Query | Yes | The search string or regular expression pattern. | |
| IsRegex | No | Treat Query as a regular expression. | |
| Includes | No | Optional glob filters for filenames. | |
| SearchPath | Yes | The file or directory path to search. | |
| MatchPerLine | No | Return matching line numbers and snippets (default true). | |
| CaseInsensitive | No | Perform case-insensitive matching. |