query_codebase
Ask a natural-language question about your codebase and get a synthesized answer with source excerpts, even when you don't know the exact filename or symbol.
Instructions
Fuzzy/semantic RAG search over a codebase indexed by ragd.
Prefer this over Grep/Glob when the question is conceptual rather than an exact string/symbol match -- e.g. "where do we handle retry logic" or "how is auth configured" -- where you don't know the exact symbol/filename to search for. Returns a synthesized answer plus the source file excerpts it was drawn from.
Args: query: Natural-language question about the codebase. resource: Name of the ragd resource to search. If omitted, the resource whose indexed directory contains the current working directory is used automatically. top_k: Number of source chunks to retrieve and ground the answer in (default 5, max 20).
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": "query_codebase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| top_k | No | ||
| resource | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |