search_codebase
Search codebases for regex patterns with ripgrep to locate relevant files and code. Filter by subdirectory, file glob, and case sensitivity.
Instructions
Search for a pattern in the codebase using ripgrep (supports 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": {
"pattern": "<pattern>"
},
"name": "search_codebase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Subdirectory to search (relative to workspace root) | |
| pattern | Yes | Search pattern (ripgrep regex) | |
| file_glob | No | Glob to filter files, e.g. '*.ts' | |
| case_sensitive | No | Case-sensitive search; default false |