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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "add_table_of_contents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Table of Contents | |
| heading_levels | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |