task_context
Retrieves relevant code symbols, tests, and docs for a given task text, ranked by BM25 and graph relevance, with source snippets and explanations, fitting an adaptive token budget.
Instructions
One call to start a task: the symbols relevant to the task text (BM25 over names/signatures/docs, boosted by PageRank and graph proximity), with source for the strongest ones, plus tests and config/docs that mention the terms. scope limits to a path prefix (e.g. "backend/src/services"). Always fits an adaptive budget by default (set token_budget to override); each item carries a 'why' and an expand handle. Reports truncation and index version.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| scope | No | ||
| max_symbols | No | ||
| token_budget | No | ||
| include_source | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |