create_workbook
Create a new Excel workbook at a specified path, with optional initial sheets, and automatically create parent directories if needed.
Instructions
Create a new Excel workbook at file_path with optional initial sheets.
Args: file_path: Destination path for the new workbook. sheet_names: Optional list of sheet names to create. sheet_name: Optional single sheet name (legacy convenience).
Returns: WorkbookCreatedResult: Contains file path and sheet information.
Notes: - Mutates filesystem by creating a new .xlsx. Parent directory will be created if permitted by utils.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| sheet_name | No | ||
| sheet_names | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheets | Yes | Names of sheets in the new workbook. | |
| file_path | Yes | Absolute path of the created workbook file. |