addTab
Adds a new tab to a Google Docs document with optional title, position, parent nesting, and icon emoji, then returns the new tab's ID and properties.
Instructions
Adds a new tab to a Google Docs document. Optionally set the tab title, position, parent tab (for nesting), and icon emoji. Returns the new tab's ID and properties.
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": {
"documentId": "<documentId>"
},
"name": "addTab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | The zero-based position among sibling tabs (within the same parent). If not specified, the tab is added at the end. | |
| title | No | The title for the new tab. If not specified, Google Docs assigns a default name. | |
| iconEmoji | No | An emoji to display as the tab icon (e.g., "📋"). | |
| documentId | Yes | The document ID — the long string between /d/ and /edit in a Google Docs URL. | |
| readHandle | No | Capability returned by a previous readDocument call for this document (and tab). Required over HTTP on the 2026-07-28 runtime: it authorizes the write and pins it to the revision that read saw. Omit it on stdio to use that connection's most recent read. | |
| parentTabId | No | The ID of an existing tab to nest this new tab under as a child. Use listDocumentTabs to get tab IDs. If not specified, the tab is created at the root level. |