Word (.docx) to Markdown
ai_docx_to_markdownConvert Word .docx files to Markdown, preserving headings, lists, tables, links and footnotes. Runs locally and returns inline text or saves it to a file.
Instructions
Convert a Word .docx document to Markdown: headings (from Heading styles), bold/italic, lists, links, tables, footnotes. Images become placeholders like
unless embedImages is true (then data: URIs, which can be very large). Returns the number of conversion warnings (unrecognised styles and the like) and the first few messages. Old binary .doc files are not supported. Accepts a local path or base64. Inline Markdown is cut at maxChars (default 200k); "output" saves it to a file. Runs locally; nothing is uploaded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The .docx document: a local file path (absolute, or relative to the server's --root) or base64 data (raw or a data: URI). | |
| output | No | Write the Markdown to this file (or folder ending in "/") and return its path instead of the inline text. | |
| maxChars | No | Cut the inline Markdown after this many characters, with a note (a file written with "output" is never cut). Default 200000. | |
| embedImages | No | Embed images as base64 data: URIs instead of placeholders. Default false. |