excel_manage_sheets
Add, rename, delete, or copy sheets in an Excel workbook, with optional backup before modifications.
Instructions
Manage sheets in an Excel workbook (add, rename, delete, copy).
Args:
file_path: Path to the Excel file.
action: Action to perform: 'add', 'rename', 'delete', or 'copy'.
sheet_name: Target sheet name.
new_name: New name for the sheet (required for 'rename' and 'copy').
backup: If True, create a backup of the original file before modifying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| backup | No | ||
| new_name | No | ||
| file_path | Yes | ||
| sheet_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |