search_code
Search code repositories using regex or literal patterns, with optional file glob and subdirectory filters for targeted results.
Instructions
Search for patterns in the codebase using ripgrep.
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_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | File glob pattern to filter (e.g. '*.ts') | |
| path | No | Subdirectory to search in | |
| pattern | Yes | Regex or literal search pattern | |
| project | No | Project name |