Convert Document Tool
convert_documentConvert a document, e-book, spreadsheet or drawing to another format, e.g. DOCX → PDF, PDF → DOCX, EPUB → MOBI, XLSX → CSV, PDF → JPG (pages as pictures). See list_formats for every pair. Send the file as file (attached in the chat), url or base64. Returns download_page when done.
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_format": "<output_format>"
},
"name": "convert_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | Resolution of page pictures (JPG/PNG outputs). | |
| url | No | A public http(s) link to the file. Use this, file or base64. | |
| file | No | A file attached in the chat (filled in by the app; use this instead of base64 when the user attached the file). | |
| pdfa | No | PDF output as PDF/A (archiving). | |
| pages | No | Page pictures: all pages (a ZIP) or only the first. | |
| title | No | E-book title (EPUB/MOBI/AZW3 outputs). | |
| author | No | E-book author. | |
| base64 | No | The file as base64 (or a data: URL), for small files only. Prefer file or url. | |
| filename | No | Original file name, e.g. report.docx. | |
| input_format | No | Input format, e.g. docx; not needed when filename has the extension. | |
| output_format | Yes | Target format, e.g. pdf, docx, odt, txt, epub, mobi, xlsx, csv, jpg, png. |