get_context
Retrieves the most relevant code for a task within a hard token budget. Pass a bug report, feature request, or stack trace to get ranked files and fitted function bodies.
Instructions
The most relevant code for a task, packed into at most budget_tokens tokens.
Pass the task in plain words (a bug report, a feature request, a stack trace). Files are
ranked by full-text match, meaning (local embeddings), names and paths the task mentions
and git history; function bodies and outlines are then fitted into the budget.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| budget_tokens | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |