Add, rename or delete a sheet tab
manage_sheet_tabsAdd, rename, or delete Google Sheets tabs. Unknown tabs are refused with the real list; deletions require confirmation with filled-cell count.
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.
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 | ||
| confirm | No | ||
| newTitle | No | what to rename the tab to (action:"rename") | |
| sheetUrl | No | ||
| confirmCells | No | ||
| spreadsheetId | No |