convert_content
Convert short, self-generated documents by passing content as a string. Supports markdown, HTML, reStructuredText, plain text, and base64 docx to various output formats including PDF and Word.
Instructions
Offload an inline document conversion to Botverse — pass the content directly as a string. ONLY use this tool for content you generated yourself (e.g. Markdown you just wrote). HARD LIMIT: content must be under 10,000 characters. If the content is longer than 10,000 characters, or came from an uploaded or external file, DO NOT use this tool — tell the user to make the file available at a public URL (Google Drive share link, Dropbox, object storage, etc.) and use convert_from_url instead. Supported inputs: md, html, rst, txt (plain text), docx (base64). Supported outputs: docx (Word), pdf, html, txt, md, rst, xlsx. Flat fee $0.05 per file.
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 docx). | |
| input_format | Yes | Source format of the content. | |
| output_format | Yes | Target format: docx | html | txt | md | rst | pdf | xlsx | |
| encoding | No | Encoding of the content field. Defaults to "text". Use "base64" for binary inputs like .docx. |
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. |