finalize_receipt_upload
Step 2 of 2 for uploading a local receipt file. Pass the uploadKey returned from request_receipt_upload AFTER you've executed the curlCommand to PUT the file to S3. Validates the staged file, runs OCR + LLM extraction, attempts to auto-match to an existing transaction, and persists line items. Returns receiptId, optional billId (for invoice-shaped docs), and matched/suggested/transactionId.
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": {
"uploadKey": "<uploadKey>"
},
"name": "finalize_receipt_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uploadKey | Yes | The opaque signed key returned by request_receipt_upload. | |
| captureSource | No | Provenance label for the audit trail. Defaults to MANUAL_UPLOAD. |