Repair broken invoice XML
repair_xmlRepair an invoice XML that is not well-formed (validate/parse answer MALFORMED_XML): closes unclosed elements, removes stray closing tags, fixes prefix/case mismatches, escapes bare & and <. Refuses truncated files, HTML and files needing more than 25 changes (REPAIR_NOT_POSSIBLE). Returns every change and the repaired XML; validate it before sending. XML only, not PDF.
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": "repair_xml"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | Invoice XML (UBL, CII, XRechnung, Peppol BIS, ZUGFeRD/Factur-X XML, KSeF FA(3)) as text |