search_codebase
Find specific text or regex patterns in your codebase, returning matches with file paths and line numbers.
Instructions
Searches the codebase for text or regex patterns, returning matches with file paths and line numbers.
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": {
"query": "<query>"
},
"name": "search_codebase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Text or regex pattern to search for. | |
| is_regex | No | Treat query as a regular expression. Default: false. | |
| file_pattern | No | Glob pattern to restrict search scope (e.g. "**/*.ts"). | |
| case_sensitive | No | Case-sensitive search. Default: false. | |
| max_results | No | Maximum number of results. Default: config value. |