Convert a file to PDF
documents_convert_to_pdfTurn a file in the store into a PDF: Word, Excel, PowerPoint, OpenDocument, RTF, CSV or text files, and Markdown or HTML. The PDF is a new file; the original stays. Costs $0.02 per call; nothing if it fails.
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_id": "<file_id>"
},
"name": "documents_convert_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for the new file, e.g. "Quote 1042.pdf". | |
| file_id | Yes | A file in the store (files_upload or files_list give its file_id). | |
| link_hours | No |