search
Find text or regex matches across workspace files, returning path:line:text and skipping .gitignore, .git, and node_modules.
Instructions
Searches text files under a folder, as path:line:text, the path from the workspace. Skips what .gitignore ignores, .git and node_modules.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | A folder or file. Inside the workspace; relative to it, or absolute; ~ is the home folder. The workspace by default. | |
| limit | No | Most matches; 200 by default. | |
| regex | No | ||
| pattern | Yes | Exact text, or a regular expression with regex. | |
| ignore_case | No |