word_convert_to_pdf
Convert Word documents (.docx) to PDF using local LibreOffice installation. Specify the file path and optional output path for direct conversion.
Instructions
Convert a .docx file to PDF via a local LibreOffice install (requires LibreOffice/'soffice' on PATH or a standard install location)
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": {
"file_path": "<file_path>"
},
"name": "word_convert_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the .docx file | |
| output_path | No | Absolute path to write the PDF to (default: file_path with a .pdf extension) |