Copy sheet
copy_sheetDuplicate a worksheet within the same workbook, preserving its values, formulas, and styles, to create a new named sheet.
Instructions
Duplicate a sheet with its values, formulas and styles, inside the same workbook.
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": {
"source_sheet": "<source_sheet>",
"target_sheet": "<target_sheet>"
},
"name": "copy_sheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File path or preloaded name (list_configured_files). Omit if only one file is preloaded. | |
| backup | No | Save a .bak copy first. Default: XLSX_MCP_AUTO_BACKUP (true). | |
| reason | No | Why; kept in the change log (XLSX_MCP_CHANGE_LOG=true). | |
| source_sheet | Yes | Sheet to duplicate. | |
| target_sheet | Yes | Name for the copy (1-31 chars, must not exist yet). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||