extract_receipt
Extract vendor, date, totals, line items, and other structured data from receipt or invoice images using AI. Returns confidence score and supports JPEG, PNG, or PDF.
Instructions
Extract structured data from a receipt or invoice image using AI.
Returns vendor, date, totals (gross/net/VAT per rate), line items, currency, payment method, SKR03/04 account, category, and confidence score.
Args: image_base64: Base64-encoded receipt image (JPEG, PNG) or PDF. filename: Original filename (helps with format detection). content_type: MIME type (default: image/jpeg). Use application/pdf for PDF receipts.
Returns: JSON with extracted receipt data.
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": {
"image_base64": "<image_base64>"
},
"name": "extract_receipt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_base64 | Yes | ||
| filename | No | receipt.jpg | |
| content_type | No | image/jpeg |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |