gws.sheets.add_tab
Adds a new empty tab to a Google Spreadsheet at a specified position. Prevents duplicate titles by returning an error, and returns the new tab's title, ID, and index.
Instructions
Add a new, empty tab (sheet) to a Google Spreadsheet using AddSheetRequest. index is the zero-based position (default: last). Returns an error — without changing anything — if a tab with the same title already exists. Returns the new tab's title, sheet_id, and index. This tool modifies the user's document: confirm intent with the user before calling it on documents you did not create in this session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Zero-based position for the new tab (default: after the last tab) | |
| title | Yes | Title for the new tab; must not already exist | |
| account | No | Account label or email. Uses default if omitted. | |
| spreadsheet_id | Yes | The spreadsheet ID |