Convert Uploaded Document
convert_fileOffload a document conversion to Botverse using an already-uploaded file. Workflow: (1) call get_upload_url to get a presigned upload form, (2) POST the file to that URL as multipart/form-data (all upload_fields first, then the file), (3) call convert_file with the object_key — Botverse handles the rest server-side. Returns a job_id immediately so you can continue with other tasks while conversion runs. Supported inputs: md, html, rst, txt, docx, doc, xlsx, pptx, ppt. Supported outputs: docx, pdf, html, txt, md, rst, xlsx. Office inputs render to PDF with their real page layout (Excel honors print areas); PowerPoint inputs convert to pdf only. Poll get_job_status until complete, then get_download_url. Flat fee $0.05 per file. If you are in a sandboxed environment where the get_upload_url POST is blocked, do not use this tool — use convert_content (inline content under 4 MB) or convert_from_url (public URL) instead; no upload needed.
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": {
"object_key": "<object_key>",
"output_format": "<output_format>"
},
"name": "convert_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object_key | Yes | The object_key returned by get_upload_url. | |
| output_format | Yes | Target format: docx | html | txt | md | rst | pdf | xlsx | |
| single_page_sheets | No | Excel to PDF only: scale each sheet onto exactly one PDF page. Default false (the workbook's own print areas and page setup are used). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Unique identifier for this job. Pass to get_job_status and get_download_url. | |
| status | Yes | Initial job state — always queued or processing immediately after submission. | |
| estimated_seconds | No | Rough estimated processing time in seconds. Actual time may vary. |