search
Find file contents matching a regex (ripgrep syntax), returning up to 50 path:line:text matches to locate function definitions or usages before opening files; optionally limit by path or glob.
Instructions
Search file contents with a regular expression (ripgrep syntax) and return up to 50 matches as path:line:text. Use it to find where a function is defined or used before opening files. Optionally restrict to a sub-directory (path) or a file glob such as '*.py'.
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 |
|---|---|---|---|
| glob | No | ||
| path | No | . | |
| pattern | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |