convert_to_pdf
Create PDFs from images, text/markdown files, or Office/HTML documents; Office/HTML conversion requires LibreOffice installed.
Instructions
Create a PDF from an image, a text/markdown file, or an Office/HTML document.
Office/HTML (docx, xlsx, pptx, odt, html, ...) requires LibreOffice 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": {
"input_path": "<input_path>"
},
"name": "convert_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| overwrite | No | ||
| input_path | Yes | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | Yes | ||
| output | Yes | ||
| source_kind | Yes |