create_context_receipt
Create a structured receipt from documents that captures selected context, omitted context, dependencies, and token usage. Optionally persists a recovery bundle for omitted chunks.
Instructions
Create a Context Receipt from supplied documents.
documents_json may be:
a JSON object mapping source path to text
a JSON array of
[source_path, text]pairsa JSON array of objects with
source_path/textorsource/contentkeys
The receipt records selected context, omitted relevant context, dependency links, fingerprints, token ratio, warnings, and risk controls. It does not call an LLM.
Set recoverable=True to also persist a project-local recovery bundle,
so any omitted chunk can later be recovered byte-exact and verified via
recover_receipt_omission.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| recoverable | No | ||
| chunk_tokens | No | ||
| token_budget | No | ||
| documents_json | Yes | ||
| overlap_tokens | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |