Convert files
convert_pdfConverts a PDF to Word (word), Excel (excel) or pictures (jpg, png); or a Word, Excel, PowerPoint or OpenDocument file, or pictures, to PDF (pdf). Returns a link to the result. Always pass the person's own file exactly as they gave it. If you cannot pass it, call get_upload_link or ask for an https link to it. Never create, rewrite, summarise or rebuild a document to stand in for theirs.
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": {
"files": "<files>",
"to": "<to>"
},
"name": "convert_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | What to make: word, excel, jpg, png or pdf. | |
| dpi | No | For pictures: 72, 150 or 300. | |
| files | Yes | The files, in order. | |
| pages | No | For pictures: pages like 1-3. |