stage_receipt
Preserve a receipt photo or PDF as evidence and get a reference key to attach to a proposed Beancount transaction. Call this first so every entry has proof for future audits.
Instructions
Store a receipt photo or PDF as evidence and return a reference to it.
Call this FIRST, before proposing anything. A receipt is the source document for the entry it becomes, and an entry whose evidence was thrown away is a promise we cannot keep two years from now.
Give it EITHER file_path (a photo or PDF on this machine — the plugin
path) OR content_base64 (raw bytes, for a chat agent that has no
filesystem in common with the book). declared_name is recorded in the
reply for your convenience and is used for NOTHING else — never for the
file type, never for where the bytes are stored.
Returns JSON with the bucket key and the content hash. Pass both to
propose_receipt_transaction. Then read the image yourself: this tool does
not look at it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | ||
| declared_name | No | ||
| content_base64 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |