list_doc_tabs
Retrieve all tabs in a Google Doc, including nested child tabs, with their IDs, titles, and hierarchy. Use the returned tab IDs to target specific tabs in other doc-editing tools.
Instructions
List all tabs in a Google Doc, including nested child tabs, as a flat tree.
Google Docs tabs (launched Oct 2024) let a single document contain multiple
sub-documents organized hierarchically. Most doc-editing tools need a
tab_id to target a specific tab — call this first to discover IDs,
titles, and the tab hierarchy. Returned tabs preserve document order;
indentation in the output indicates nesting depth (child tabs shown under
their parent).
Requires OAuth scope: https://www.googleapis.com/auth/documents.readonly
(or broader). Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | ||
| document_id | Yes | Google Docs document ID (from the URL after `/document/d/`). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |