query_codebase
Ask natural language questions about a codebase and automatically escalate to deep research when initial answers are insufficient.
Instructions
Smart query that combines ask_question with automatic escalation to deep_research when the initial answer is insufficient. Single entry point for codebase Q&A.
Requires: index_repository must be called first.
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": {
"repo_path": "<repo_path>",
"query": "<query>"
},
"name": "query_codebase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | Path to the indexed repository | |
| query | Yes | Natural language question about the codebase | |
| auto_escalate | No | Automatically escalate to deep_research if initial answer is insufficient (default: true) |