create_context_receipt
Generate a context receipt to track which context was selected or omitted from documents, including dependencies, fingerprints, and risk controls, with optional recovery bundles.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"documents_json": "<documents_json>",
"query": "<query>"
},
"name": "create_context_receipt"
}
}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 |