excel_export_html
Convert Excel .xlsx files to HTML using LibreOffice headless. Specify source path and output target to get standalone HTML.
Instructions
Convert a .xlsx file to HTML via LibreOffice headless.
Delegates to :func:office_mcp.exporters.export_to_html. Unlike
the Word variant this path always goes through LibreOffice
(openpyxl does not produce standalone HTML).
Args:
path: Path to an existing .xlsx file.
output: Target path for the produced HTML. The parent
directory is created if it does not exist. If a relative
path is given, it is resolved against folder (or the
default folder).
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-.xlsx
sources, ERR_LIBREOFFICE_MISSING when soffice is
not on PATH, 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 | |||