doc_convert
Convert documents between formats like Markdown, HTML, DOCX, PDF, and more using pandoc. Accepts text, base64 file, or URL and returns text or base64 output.
Instructions
Document Conversion (pandoc) — Convert documents between formats with pandoc: Markdown, HTML, DOCX, ODT, EPUB, RST, LaTeX, RTF, plain text and PDF. Input as text (content), file (file_base64, max 10 MB: docx, odt, epub, rtf) or url. Input format is detected automatically or set with from. Text outputs come back as content, binary outputs (docx, odt, epub, pdf) as file_base64. Local file includes and remote images are not loaded. Params: to (required), content or file_base64 or url, from, title. Cost: $0.01 USDC per call. Latency p99: 8000ms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| url | No | URL of the document (max 10 MB) | |
| from | No | Input format, e.g. markdown, html, docx, rst, latex; detected if omitted | |
| title | No | ||
| content | No | Document text (markdown, html, rst, latex, org, csv ...) | |
| file_base64 | No | Binary document (docx, odt, epub, rtf), base64 |