excel_export_csv
Export Excel sheets to CSV files. Convert .xlsx to .csv with UTF-8 encoding and Excel-friendly dialect.
Instructions
Export a sheet to CSV via :mod:openpyxl and the stdlib :mod:csv.
Delegates to :func:office_mcp.exporters.export_to_csv. The
output is written as UTF-8 (without a BOM) and uses the
standard Excel-friendly CSV dialect.
Args:
path: Path to an existing .xlsx file.
output: Target path for the produced .csv. 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).
sheet: Optional sheet name. When None (the default), the
workbook's first sheet is exported.
folder: Optional base folder for relative paths.
Returns:
{"output_path": "<absolute path of the produced CSV>"}.
Raises:
OfficeMCPError: ERR_FILE_NOT_FOUND if the source is
missing, ERR_UNSUPPORTED_FMT for non-.xlsx
sources, ERR_SHEET_NOT_FOUND for an unknown sheet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| output | Yes | ||
| sheet | No | ||
| folder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||