get_answer
Answers developer questions about a codebase with cited, confidence-rated synthesis from hybrid retrieval, in one round-trip.
Instructions
Synthesised answer with citations and a calibrated trust signal.
The single entry point for questions: "how does X work" / "where is Y" /
"why is Z". It runs the full hybrid retrieval internally (no prior
search_codebase call needed) and answers in one round-trip.
confidence=high is content-grounded (value + citation-source + frame
gates): cite it directly, no verification Read needed. A "why" answer
whose named mechanism is absent from the retrieved source is downgraded
to medium (the rationale may be conflated). Low confidence returns
best_guesses with one-line justifications instead of an empty answer.
retrieval_quality separately rates the retrieval that fed synthesis.
When the answer names a function/method/class, ``symbol_bodies`` carries
its full live body — read that instead of a follow-up get_symbol.
``episodes``, when present, is a dated fact recorded about this checkout
that bears on the question — evidence beside the answer, not a correction
of it. Weigh it against the answer; ``still_true`` says how current it is.
Args:
question: developer question.
scope: optional path-prefix filter (e.g. "src/pkg/").
repo: usually omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | ||
| scope | No | ||
| question | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |