insert_table_of_contents
Automatically generate and insert a table of contents in Google Docs based on document headings, with automatic updates when headings change.
Instructions
Insert a table of contents at the specified index.
The table of contents is auto-generated from document headings (HEADING_1 through HEADING_6). It updates automatically when headings change.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | The ID of the Google Document | |
| index | Yes | Index where to insert TOC (1-based) |