ctx_context
Builds a compact, relevance-ranked JSON context package for a coding task. Give a natural-language task to retrieve relevant files, symbols, and snippets for an LLM, with optional git changes.
Instructions
Build a compact, relevance-ranked context package for a coding task and return it as JSON. This is the high-value tool: give it a natural-language task and it returns the most relevant files/symbols/snippets to feed to an LLM, optionally including recent git changes. Use when you need a focused slice of the codebase for a prompt instead of reading many files. task is required and should describe the goal; include_bodies (default false) embeds function bodies; max_tokens (default auto, 128-100000) caps package size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Natural-language description of the coding task the context should support. Required. | |
| max_tokens | No | Upper bound on package size in tokens. Omit for automatic sizing. | |
| include_bodies | No | When true, include function/body text in the package (larger output). Default false. |