query
Locate code symbols via semantic search and graph expansion, returning ranked results with optional context packs for AI analysis.
Instructions
Locate symbols in the indexed graph (BM25/FTS + 1–2 hop graph expand + RRF; optional vector channel) — not web search. Prefer search_hybrid when you also want a package public_api_map. Production/app defs rank above sample/test/fixture/style noise; pass path= on follow-up context/context_bundle/impact when ambiguous. For broad/architecture questions set include_context_pack=true and limit 24-32. Pair hits with context_bundle before claiming behavior. Empty hits → rephrase, ast_query, or analyze.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Repository name (optional if only one indexed) | |
| limit | No | Max items in context_pack when include_context_pack or limit>0 (default 24) | |
| query | Yes | Symbol name, concept, or natural-language locate task | |
| top_k | No | Max ranked hits to return (default 10). Lower = fewer tokens, sharper focus. | |
| format | No | Response text encoding: toon (default, token-efficient) | json | |
| intent | No | Optional task intent: explore|debug|test|refactor | |
| base_ref | No | Diff base for changed-symbol boosting | HEAD~1 |
| verbosity | No | concise (default: name/kind/loc/score) | detailed (full symbol records) | |
| budget_tokens | No | When set (>0), also return token-budgeted buckets | |
| include_context_pack | No | Include ranked context_pack in response |