Extract ZUGFeRD / Factur-X XML
extract_zugferdExtract the embedded invoice XML and a JSON summary from a ZUGFeRD or Factur-X PDF. Send the PDF as file_base64 (limit 10 MB). Same free limit as validate_xrechnung (shared counter). ok means an XML attachment was found. The xml field is the raw document.
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": {
"file_base64": "<file_base64>"
},
"name": "extract_zugferd"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | No | Optional file name, e.g. invoice.pdf. | |
| file_base64 | Yes | The PDF, base64-encoded. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| xml | No | ||
| profile | No | ||
| summary | No | ||
| fileName | No | ||
| embeddedName | No |