insert_doc_tab
Add a new tab to a Google Doc at a chosen index, with optional nesting under a parent tab. Provide user email, document ID, title, and index to update the document structure.
Instructions
Inserts a new tab into a Google Doc.
Args: user_google_email: User's Google email address document_id: ID of the document to update title: Title of the new tab index: Position index for the new tab (0-based among sibling tabs) parent_tab_id: Optional ID of a parent tab to nest the new tab under
Returns: str: Confirmation message with document link
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>",
"document_id": "<document_id>",
"title": "<title>",
"index": "<index>"
},
"name": "insert_doc_tab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| title | Yes | ||
| document_id | Yes | ||
| parent_tab_id | No | ||
| user_google_email | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |