Convert a file and get its download
convert_fileConverts a file to an editable or clean format. Publisher/PageMaker: pptx, docx, idml, pdf, png or jpg (pass job_id from inspect_file, or the file). Visio: pdf or png. Microsoft Project: xlsx or csv. InfoPath forms: xlsx or csv. Returns download links when the download is free, already paid, or covered by license_key; otherwise returns a Stripe Checkout link for the user to pay in their browser (the tool itself makes no payment). After payment, call again with the license key the user receives (Visio, Project, InfoPath, or a Publisher pass), or use get_conversion_status for a paid Publisher job.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "convert_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | No | Publisher job_id from inspect_file (instead of the file). | |
| file_url | No | Public http(s) URL of the file. Dropbox, Google Drive and OneDrive share links are accepted. | |
| filename | No | Original file name with extension, e.g. "newsletter.pub". Helps identify the type. | |
| upload_id | No | upload_id from create_upload_link, after the user has uploaded the file. | |
| file_base64 | No | The file as base64, up to 20 MB. Use only when you already have the bytes. | |
| license_key | No | An Everformat license key or Publisher pass key the user gave you, if any. | |
| output_format | No | Wanted format. Defaults: pptx for Publisher, pdf for Visio, xlsx for Project and InfoPath. |