build_context
Builds a ranked, token-limited context payload from a natural-language query, retrieving relevant code nodes for LLM prompts while preventing context overflow.
Instructions
**Context Intelligence Engine** — the most powerful V.I.S.O.R. tool.
Builds a ranked, token-budget-enforced context payload from a natural
language query. Lexical retrieval is the default; semantic retrieval is
an explicit opt-in. Ranking combines five signals:
- Exact symbol name match
- Co-location in the same file as the top hit
- Retrieval similarity when semantic mode is enabled
- Dependency graph distance
- File recency
Returns a scored list of code nodes ready to be injected into an LLM
prompt, capped at 8,000 tokens to prevent context overflow.
Example:
``build_context("how is authentication handled")``
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": "build_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| skill | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |