export_to_pdf
Convert DOCX files to PDF, prioritizing LibreOffice for high fidelity, then pandoc. Returns conversion status and method used.
Instructions
Convert a .docx file to PDF. Attempts conversion via LibreOffice (best fidelity) then pandoc. Returns success status and the method used. Requires LibreOffice or pandoc to be installed on the system.
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>",
"outputPath": "<outputPath>"
},
"name": "export_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the source .docx file | |
| outputPath | Yes | Path where the output .pdf file will be saved |