Add Transaction from Photo
add_transaction_from_photoRun AI vision extraction on a base64-encoded receipt/transaction photo (image/jpeg, image/png, application/pdf) and return a PREFILLED transaction draft (NOT committed). Picks the primary transaction from the photo and returns amount, date, description, type, suggestedCategory, and the (suggested) accountId. The agent should review and then call add_transaction (or bulk_add_transactions) to persist. If accountId is omitted, the account currency defaults to USD and suggestedAccountId is null - the agent must choose an account before committing. Requires confirmation: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mimeType | No | MIME type of the supplied image. Defaults to image/jpeg. | |
| accountId | No | Optional account ID to scope currency detection and prefill suggestedAccountId. When omitted, currency defaults to USD and suggestedAccountId is null. | |
| imageBase64 | Yes | Base64-encoded contents of the receipt/transaction image (no data: URI prefix). | |
| confirmation | Yes | Must be true to execute the mutation | |
| idempotencyKey | No | Optional idempotency key — calls with the same key (per-user, within 24h) return the cached response without re-executing. |