Convert a file
convertConverts a file to another format and returns a download link (valid 6 hours). The file comes from "url" (a direct link or a Google Drive, Dropbox or OneDrive share link), "uploadId" (from create_upload) or "contentBase64" with "fileName" (files up to 8 MB). Uses credits from the user's converter.studio account; goes ahead on its own up to maxCredits. Waits up to 100 seconds; if not done, call get_conversion.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target format id, e.g. "pdf", "mp4", "jpg" | |
| url | No | A link to the file | |
| options | No | Optional settings (quality, resolution, bitrate…) where the conversion has them | |
| fileName | No | The file name, needed with contentBase64 | |
| uploadId | No | An upload slot id whose file was uploaded | |
| maxCredits | No | Go ahead without asking up to this price (default 20; 0 only prices it) | |
| contentBase64 | No | The file itself, base64 (up to 8 MB) |