attach_file_to_transaction
Attach a local receipt (image or PDF, up to 10MB) to a transaction. The file is checked to be a genuine image or PDF before it's linked.
Instructions
Attach a local image or PDF receipt (max 10MB) to a transaction. Allowed types: image/jpeg, image/png, image/heic, image/heif, application/pdf. The file is read from the local filesystem of the host running this MCP server, and its type is determined from its actual contents — files that are not a real image or PDF are rejected. If LUNCHMONEY_ATTACHMENTS_DIR is set on the host, only files inside that directory can be attached.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Optional notes describing the attachment. | |
| file_path | Yes | Absolute or relative path to the receipt file on the local filesystem. Must be a regular file whose contents are a JPEG, PNG, HEIC, HEIF, or PDF. If the host sets LUNCHMONEY_ATTACHMENTS_DIR, the path must resolve inside that directory. | |
| content_type | No | Optional assertion of the file's MIME type. The server always determines the real type from the file contents; if this disagrees with it, the request is rejected. Omit unless you need that check. | |
| transaction_id | Yes | ID of the transaction to attach the file to. |