duplicateSheet
Duplicates a sheet within a spreadsheet, copying values, formulas, formatting, validations, and conditional formatting to create a complete copy.
Instructions
Duplicates a sheet (tab) within a spreadsheet, copying all values, formulas, formatting, validations, and conditional formatting. Use getSpreadsheetInfo to find the numeric sheet ID.
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": {
"spreadsheetId": "<spreadsheetId>",
"sheetId": "<sheetId>"
},
"name": "duplicateSheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheetId | Yes | The numeric sheet ID to duplicate. Use getSpreadsheetInfo to find sheet IDs. | |
| newSheetName | No | Name for the duplicated sheet. If omitted, Google auto-names it "Copy of <original>". | |
| spreadsheetId | Yes | The spreadsheet ID — the long string between /d/ and /edit in a Google Sheets URL. |