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.
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. |