excel_create_sheet
Add a new sheet to an existing Excel workbook. Specify the file path and sheet name, optionally with a base folder, to append a worksheet and get its index.
Instructions
Append a new sheet to the workbook.
Args:
path: Path to an existing .xlsx.
name: Name of the new sheet. Must be non-empty and free of
Excel-forbidden characters (: / \ ? * [ ]).
folder: Optional base folder for relative paths.
Returns:
{"index": <n>} where <n> is the position of the new
sheet in wb.sheetnames (0-based).
Raises:
OfficeMCPError: ERR_FILE_NOT_FOUND if the file is
missing, ERR_INVALID_PARAMS for a duplicate or
malformed name, ERR_UNSUPPORTED_FMT for
non-.xlsx extensions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| name | Yes | ||
| folder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||