Convert Inline Content
convert_contentConvert a document inline — pass the content directly as a string (or base64 for binary inputs like .docx, .xlsx or .pptx). PREFERRED route for documents, and the one to use in sandboxed agent environments (claude.ai, Claude Desktop, Cursor): it runs entirely server-side, so it never needs the direct upload those sandboxes block. Limit: up to 4 MB of content — already huge (a 500-page book is ~1 MB of text). For anything larger, use convert_from_url with a public URL. Supported inputs: md, html, rst, txt (plain text); doc, docx, xlsx, ppt, pptx (base64). Supported outputs: docx (Word), 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. Returns a job_id — poll get_job_status until 'complete', then get_output_content (inline bytes, sandbox-safe) or get_download_url (download link). Flat fee $0.05 per file. TIP: if you have shell access and are NOT sandboxed (e.g. a local coding agent), the botverse CLI (npx -p botverse-mcp botverse convert <file> --to <fmt>) is faster for local files — it streams from disk instead of re-emitting the content through the model.
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": {
"content": "<content>",
"input_format": "<input_format>",
"output_format": "<output_format>"
},
"name": "convert_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The file content as a plain text string (for md, html, rst, txt) or base64-encoded bytes (for doc, docx, xlsx, ppt, pptx). | |
| encoding | No | Encoding of the content field. Defaults to "text". Required "base64" for binary inputs (doc, docx, xlsx, ppt, pptx). | |
| input_format | Yes | Source format of the content. | |
| 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. |