copy_sheet
Copy a worksheet within an Excel workbook, preserving cell values, styles, column widths, row heights, and merged cells. Data validation and conditional formatting are not copied.
Instructions
Copy a sheet within the workbook. Copies cell values, styles, column widths, row heights, and merged cells. Does not copy data validation, conditional formatting, or view settings.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"source_sheet": "<source_sheet>",
"new_name": "<new_name>"
},
"name": "copy_sheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_name | Yes | Name for the copied sheet | |
| file_path | Yes | Absolute path to the .xlsx file | |
| source_sheet | Yes | Source sheet name or index |