renameSheet
Rename a sheet tab in a Google Sheets spreadsheet by specifying the spreadsheet ID, numeric sheet ID, and new name. Use getSpreadsheetInfo first to find the sheet ID.
Instructions
Renames a sheet (tab) in a spreadsheet. 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>",
"newName": "<newName>"
},
"name": "renameSheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newName | Yes | The new name for the sheet. | |
| sheetId | Yes | The numeric sheet ID to rename. Use getSpreadsheetInfo to find sheet IDs. | |
| spreadsheetId | Yes | The spreadsheet ID — the long string between /d/ and /edit in a Google Sheets URL. |