mercury-receipt-upload
Installation
SKILL.md
Mercury Receipt Upload
Attach a receipt image to the matching Mercury transaction. This skill extracts merchant, amount, and date from a receipt image, searches Mercury transactions to find the corresponding charge, confirms the match with the user, and uploads the file as an attachment via the mercury CLI.
Upload is irreversible: the skill always confirms the target transaction with the user before calling mercury transactions attachments attach.
Parameters
| Parameter | Default | Description |
|---|---|---|
receiptPath |
(required) | Absolute path to the receipt file (PDF, PNG, JPG, GIF). |
transactionId |
(optional) | Skip matching and upload directly to this transaction ID. |
dateWindow |
±3 days | Days of leeway around the receipt date when searching transactions. |
amountTolerance |
$0.00 (exact) | Allowed absolute difference between the receipt total and the transaction amount. Increase for restaurant/tip scenarios. |
accountId |
(optional) | Restrict the transaction search to a specific Mercury account. |