Manage Sheet Tab
manage_sheet_tabRename, delete, hide, unhide, reorder, or style an existing spreadsheet tab, including tab color and gridline visibility, without changing sheet data.
Instructions
Manages an existing sheet tab: rename, delete, hide, unhide, reorder, or style (tab color and gridlines).
Use create_sheet to add a tab, and resize_sheet_dimensions for row and column level changes. This tool operates on the tab itself.
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": {
"user_google_email": "<user_google_email>",
"spreadsheet_id": "<spreadsheet_id>",
"sheet_name": "<sheet_name>",
"action": "<action>"
},
"name": "manage_sheet_tab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | One of "rename", "delete", "hide", "unhide", "reorder", "style" | |
| new_name | No | New title, required for action="rename" | |
| new_index | No | New zero-based position, required for action="reorder" | |
| tab_color | No | For action="style": hex tab color (#RRGGBB), or "none" to remove it | |
| sheet_name | Yes | Title of the existing tab to act on | |
| show_gridlines | No | For action="style": show (True) or hide (False) the sheet's gridlines | |
| spreadsheet_id | Yes | ID of the spreadsheet | |
| user_google_email | Yes | User's Google email address |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |