markdown_generate_toc
Generate a table of contents from markdown headings. Returns TOC lines to use in documents without one.
Instructions
Generate a table of contents from markdown headings. Returns TOC lines without inserting them. Use this to create a new TOC for a document that doesn't have one.
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_generate_toc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| markdown | Yes | The markdown content to generate TOC from. | |
| 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. |