Add, rename or delete a sheet tab
manage_sheet_tabsAdd, rename, or delete a tab in a Google Spreadsheet, with delete guarded by a filled-cell count confirmation and the last remaining tab protected from removal.
Instructions
Add, rename or delete a tab in a Google Spreadsheet. action:"add" + title · action:"rename" + tab + newTitle · action:"delete" + tab. Name the tab by its TITLE or its numeric sheetId (list_sheet_tabs gives both); an unknown tab is refused with the real list rather than a Google error nobody can map back. DELETING a tab destroys everything on it: call it without confirm first to get the filled-cell count, then confirm:true + confirmCells. Google does not allow removing the LAST remaining tab in a file, and that is refused by name with the way out (clear it, or delete the whole file with delete_drive_file). Every action is read back from the spreadsheet before it is reported as done.
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": {
"action": "<action>"
},
"name": "manage_sheet_tabs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | which tab — its title or numeric sheetId (rename / delete) | |
| title | No | the name for the new tab (action:"add") | |
| action | Yes | add, rename or delete a tab | |
| confirm | No | true deletes a tab that holds data; needs confirmCells | |
| newTitle | No | what to rename the tab to (action:"rename") | |
| sheetUrl | No | Google Sheets link, instead of spreadsheetId | |
| confirmCells | No | the filled-cell count an unconfirmed delete reported | |
| spreadsheetId | No | Google spreadsheet id; use this or sheetUrl |