get_context_brief
Generates a ranked, token-budgeted Markdown context brief for a coding task using hybrid retrieval, import relations, file skeletons, and git recency to surface relevant project files.
Instructions
Deterministic CONTEXT BRIEF for a coding task — the scout pyramid, layer 0.
Combines hybrid retrieval (vector/BM25), one-hop import-graph expansion,
file skeletons from the manifest and git recency into a ranked, budget-
packed markdown brief. Zero LLM calls, typically <500ms.
Args:
task: The coding task in natural language.
budget_tokens: Approximate token budget for the brief (default 4000).
hint_files: File paths explicitly mentioned in the task (client-extracted).
hint_symbols: Identifiers/symbols mentioned in the task (client-extracted).
Returns:
Markdown brief: ranked files with symbols, import relations and
top excerpts. Empty string when nothing relevant is indexed yet.
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": {
"task": "<task>"
},
"name": "get_context_brief"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| hint_files | No | ||
| hint_symbols | No | ||
| budget_tokens | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |