word_export_html
Convert .docx files to HTML using mammoth, without requiring LibreOffice. Suitable for exporting Word documents to web-ready HTML.
Instructions
Convert a .docx file to HTML via :mod:mammoth.
Delegates to :func:office_mcp.exporters.export_to_html. The
.docx path uses mammoth only (no LibreOffice dependency
— VAL-WORD-072).
Args:
path: Path to an existing .docx file.
output: Target path for the produced HTML. The parent
directory is created if it does not exist.
folder: Optional base folder for relative paths.
Returns:
{"output_path": "<absolute path of the produced HTML>"}.
Raises:
OfficeMCPError: ERR_FILE_NOT_FOUND if the source is
missing, ERR_UNSUPPORTED_FMT for non-.docx
sources, ERR_EXPORT_FAILED for any other failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| output | Yes | ||
| folder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||