search_codebase
Search a codebase for a text pattern or regular expression to find matching files, line numbers, and code snippets.
Instructions
Searches the codebase for a text pattern or regular expression, returning matching files, line numbers, and snippets.
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 | |
| use_regex | No | If true, treats the query as a Regular Expression (default: false) | |
| max_results | No | Maximum number of results (default: 30) |