Open Kioku Build Context Pack
build_context_packAssemble a ranked, token-efficient context pack of files, symbols, tests, git history, and architecture policy for a natural-language task. Use before planning or editing to inform decisions.
Instructions
Assemble a ranked, token-efficient context pack of relevant files, symbol definitions, test targets, git history evidence, and architecture policy context for a natural-language task. Returns results in JSON, Markdown, or TOON format. Use before planning or editing to assemble a ranked bundle of relevant files, symbol definitions, test targets, git history evidence, and architecture policy context for a natural-language task description. Returns results in the specified format (JSON, Markdown, or TOON). Do NOT use when prompt token budget is tight (use build_compressed_context with retrievable handles instead) or when only test recommendations are needed (use find_tests_for_change). This is read-only and queries the local index and git history only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | A natural language description of the task to gather context for (e.g., 'refactor the authentication middleware to support OAuth2'). | |
| limit | No | Maximum number of context items to include in the pack. Defaults to 20. Higher values increase completeness but also token cost. | |
| format | No | Output format. 'json' returns structured objects, 'markdown' returns human-readable text, 'toon' returns token-optimized notation. Defaults to 'json' when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | Wrapped non-object output, used for Markdown, TOON, or scalar responses. |