add_table_of_contents
Insert a table of contents into a document, allowing you to set the section title and the number of heading levels.
Instructions
Add a Table of Contents to the document. The TOC will include headings up to the specified level.
Args: title: Title for the TOC section heading_levels: Number of heading levels to include (1-9)
Returns: Success or error message
Note: Open the document in Word and update the field to populate the TOC.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Table of Contents | |
| heading_levels | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |