extract_invoice
Extract structured JSON (parties, lines, totals, payment data) from an e-invoice: XRechnung UBL/CII XML or a ZUGFeRD/Factur-X PDF (embedded XML is pulled from the PDF). Send exactly one of xml / pdfBase64. 5 credits, requires an API key.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "extract_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | No | ||
| pdfBase64 | No | Base64-encoded PDF, max ~2 MB |