Convert a document to another format
convert_documentConvert documents to PDF, HTML, or PNG formats using LibreOffice-WASM. Returns converted file as base64.
Instructions
Convert a document (base64) to another format via LibreOffice-WASM — e.g. to 'pdf', 'html', 'png'. Returns the converted bytes as base64. Fidelity-critical, no native LibreOffice needed.
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": {
"bytes_base64": "<bytes_base64>",
"to": "<to>"
},
"name": "convert_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target format, e.g. 'pdf', 'html', 'xlsx'. | |
| bytes_base64 | Yes | The source file bytes, base64-encoded. |