document_export
Convert LibreOffice documents to PDF, DOCX, HTML, TXT, and other formats using the LibreOffice engine for compatibility and sharing needs.
Instructions
Export a document to a different format using LibreOffice. Supports exporting to: PDF, HTML, TXT, DOCX, XLSX, PPTX, ODT, ODS, ODP, CSV. LibreOffice must be installed.
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": {
"docId": "<docId>",
"format": "<format>"
},
"name": "document_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | Document handle returned by document_open | |
| format | Yes | Target format | |
| outputPath | No | Output file path (default: same directory as source, new extension) |