Add a tab to a Google spreadsheet
google_sheets_tab_addAdd a new tab to an existing Google spreadsheet by ID or URL, with a unique title and optional position and size. Use it to create a separate sheet for data entry or edits.
Instructions
Add a new tab (sheet) to an existing Google spreadsheet, by spreadsheet (its id or URL). title must not be used by another tab of the spreadsheet, ignoring case, or the call is refused before it writes. index is the tab's position counted from 0 (left out, it goes last); rows and columns set its size (left out, Google's default). The result gives the new tab's id, title, position and size. It is not idempotent: a second call with the same title is refused. Use google_sheets_create for a new spreadsheet and google_sheets_append or google_sheets_edit to fill the tab. account is needed when several accounts are set up.
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": {
"spreadsheet": "<spreadsheet>",
"title": "<title>"
},
"name": "google_sheets_tab_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | How many rows the tab starts with (1 to 100000). Left out, Google's default. | |
| index | No | The new tab's position, counted from 0. Left out, it goes after the last tab. | |
| title | Yes | The new tab's title; no tab may have it already. | |
| account | No | The account's label. Left out, the only account is used; with several accounts, the call fails and lists them. | |
| columns | No | How many columns the tab starts with (1 to 18278). Left out, Google's default. | |
| spreadsheet | Yes | The spreadsheet's id, or its URL (https://docs.google.com/spreadsheets/d/<id>/…). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | Yes | ||
| spreadsheet_id | Yes |