Skip to main content
Glama

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
NameRequiredDescriptionDefault
document_idYesThe ID of the Google Document
indexYesIndex where to insert TOC (1-based)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nickweedon/google-docs-mcp-docker'

If you have feedback or need assistance with the MCP directory API, please join our Discord server