Convert a file
convert_fileConvert a file to another format, e.g. OFD→PDF, HEIC→JPG, STEP→STL, WEM→MP3, DOCX→PDF. Give either a public file_url or, in ChatGPT, the attached file as file. Downloads the file, converts it, and returns a download link (valid ~4 hours). Most conversions finish within the call; if not, the result has status "processing" and a job_id for get_conversion_status. Up to 50 MB.
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": {
"to": "<to>"
},
"name": "convert_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target format extension, e.g. "pdf", "jpg", "stl", "mp3". | |
| file | No | A file the user attached in ChatGPT. ChatGPT fills this in; other clients use file_url. | |
| from | No | Source format extension. Only needed when the URL and filename do not end in one. | |
| file_url | No | Public http(s) URL of the file to convert. Google Drive and Dropbox share links work. Leave out when passing `file`. | |
| filename | No | Name for the file, with extension, e.g. "invoice.ofd". Optional. |