manage_sheet_tabs
Add, rename or delete a sheet tab destructive
Description
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.
Parameters
| Parameter | Type | Description |
|---|---|---|
spreadsheetId | string | Google spreadsheet id; use this or sheetUrl |
sheetUrl | string | Google Sheets link, instead of spreadsheetId |
actionrequired | "add" | "rename" | "delete" | add, rename or delete a tab |
tab | string | which tab — its title or numeric sheetId (rename / delete) |
title | string | the name for the new tab (action:"add") |
newTitle | string | what to rename the tab to (action:"rename") |
confirm | boolean | true deletes a tab that holds data; needs confirmCells |
confirmCells | number | the filled-cell count an unconfirmed delete reported |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/manage_sheet_tabs.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"manage_sheet_tabs","arguments":{"action":"<one of the listed values>"}}}
CLI
hermoso call manage_sheet_tabs --json '{"action":"<one of the listed values>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
list_sheet_tabsList the tabs in a Google Sheetdelete_drive_fileDelete a Drive fileclear_sheet_rangeClear a range in a Google Sheetformat_sheetFormat a Google Sheetupdate_sheetWrite to a range in a Google Sheetupdate_docEdit a Google Doc in place