convert_to_pdf
Converts an open document to PDF using LibreOffice headless. Requires LibreOffice installed; specify the destination PDF path.
Instructions
Convert the open document to PDF using LibreOffice headless.
Requires LibreOffice to be installed ('libreoffice' or 'soffice' on PATH).
Args: output_path: Destination path for the output PDF file.
Returns: {"pdf_path": str}
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": {
"output_path": "<output_path>"
},
"name": "convert_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |