copy_sheet
Duplicate a sheet within the same spreadsheet workbook, copying all cell values to create a new sheet with an optional custom name and position.
Instructions
Duplicate a sheet within the same workbook.
Copies all cell values. Returns the name of the new sheet. Not supported for CSV files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the spreadsheet file | |
| source_name | Yes | Name of the existing sheet to duplicate | |
| new_name | No | Name for the copy. Auto-generated if omitted. | |
| position | No | 1-based position for the copied sheet. Placed at the end if omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |