Get the UBL of a document
get_document_ublGives a link to the UBL XML of a sent document (the Peppol BIS 3.0 file), as the resource peppol://documents/{id}/ubl; read the resource for the XML. The UBL exists once the status is sending or delivered. It does not put the XML in the result, to save tokens.
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": {
"document_id": "<document_id>"
},
"name": "get_document_ubl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | The document ID, for example doc_8sK2mQ9xTb4Lw7Ne1Ry3. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | Yes | ||
| mime_type | Yes | ||
| size_bytes | Yes | ||
| document_id | Yes |