export
Convert a DOCX file to Markdown, HTML, or plain text and save it to disk. Get the file path, byte count, and rendered content.
Instructions
Export a document to a portable rendering (Markdown, semantic HTML, or plain text). Writes an output file (default: source path with the format extension, e.g. .md, .html, or .txt) and returns its path, byte count, and the rendered content (under content). Intentionally lossy (no round-trip); HTML is the semantic tier, not pixel-faithful. DOCX only — Google Docs is not supported.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | Path to the DOCX or ODT file. | |
| format | No | Output format: 'markdown' (default, writes .md), 'html' (writes .html), or 'plaintext' (writes .txt). | |
| output_path | No | Where to write the rendering. Defaults to the source path with the format extension. | |
| allow_overwrite | No | Overwrite output_path if it already exists. Default: false. | |
| include_markdown | No | Include the rendered content (under `content`) in the response. Default: true; set false for large documents. |