excel_create_workbook
Create a new Excel workbook (.xlsx) at a specified path. Optionally set the initial sheet name and base folder for relative paths.
Instructions
Create a new .xlsx file at path.
Args:
path: Target .xlsx path. May be absolute or relative to
folder (or to the default folder when folder is
None).
sheet_name: Optional name for the initial sheet. When
None (the default), the openpyxl default "Sheet1"
is used.
folder: Optional base folder for relative paths.
Returns:
{"path": "<absolute path>"}.
Raises:
OfficeMCPError: ERR_INVALID_PARAMS if path is empty
or a file already exists at the target (or the requested
sheet name is malformed). ERR_UNSUPPORTED_FMT if
path does not end in .xlsx.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| sheet_name | No | ||
| folder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||