document_convert
Convert document files between formats like DOC to DOCX, DOCX to PDF, or XLSX to CSV using LibreOffice. Creates new files without modifying originals.
Instructions
Convert a document file to a different format using LibreOffice CLI. Creates a new file; original is not modified. Useful for: DOC→DOCX, DOCX→PDF, XLSX→CSV, etc. 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": {
"filePath": "<filePath>",
"format": "<format>"
},
"name": "document_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Source file path | |
| format | Yes | Target format | |
| outputPath | No | Output file path (optional) |