extract_zugferd
Extracts embedded Factur-X XML from a ZUGFeRD PDF using base64-encoded PDF data, returning XML as UTF-8 or an empty string when none is found.
Instructions
Extract the embedded Factur-X XML from a ZUGFeRD PDF. Input is the PDF content as a base64-encoded string. Returns the embedded XML as a UTF-8 string, or an empty string if no XML is found.
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": {
"pdfBase64": "<pdfBase64>"
},
"name": "extract_zugferd"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pdfBase64 | Yes | Base64-encoded ZUGFeRD (Factur-X) PDF bytes. Whitespace in the base64 string is tolerated. |