markdown_insert_toc
Replace /toc markers in markdown with a generated table of contents based on document headings, automatically creating a clickable TOC.
Instructions
Replace /toc markers in markdown with generated table of contents. Finds lines containing only '/toc' and replaces them with a TOC based on document headings.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"markdown": "<markdown>"
},
"name": "markdown_insert_toc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| markdown | Yes | The markdown content with /toc markers to replace. | |
| maxLevel | No | Maximum heading level to include (1-6). Defaults to 6. | |
| minLevel | No | Minimum heading level to include (1-6). Defaults to auto-detect from document. |