{
  "slug": "toc-generator",
  "name": "gizza-ai/toc-generator",
  "version": "0.1.0",
  "title": "Table of Contents Generator — gizza.ai",
  "description": "Generate a linked table of contents from Markdown or HTML headings — pick levels, bullets or numbers, Markdown or HTML output — free in your browser.",
  "tags": [
    "table of contents generator",
    "markdown toc",
    "toc generator",
    "html table of contents",
    "markdown table of contents",
    "heading links",
    "github anchors",
    "readme toc"
  ],
  "category": "documents",
  "urls": {
    "page": "https://gizza.ai/tools/toc-generator/",
    "markdown": "https://gizza.ai/tools/toc-generator/index.md",
    "descriptor": "https://gizza.ai/tools/toc-generator/tool.json",
    "deep_link_example": "https://gizza.ai/tools/toc-generator/?document=%23%20Getting%20Started%0A%23%23%20Installation%0A%23%23%20Usage%0A%23%23%23%20Examples&input_format=auto&output_format=markdown&min_level=1&max_level=6&ordered=true"
  },
  "cli": "gizza tool toc-generator \"# Getting Started\n## Installation\n## Usage\n### Examples\"",
  "tool": {
    "description": "Build a linked table of contents from the headings of a Markdown or HTML document. Reads ATX ('#'…'######') and setext Markdown headings or HTML <h1>…<h6> tags (input_format='auto' detects which, or force 'markdown'/'html'), and emits a nested list of links to GitHub-style heading anchors. output_format='markdown' (default) returns a nested [text](#anchor) bullet list; 'html' returns a nested <ul>/<ol> of <a href=\"#anchor\"> links. min_level/max_level (1-6) limit which heading levels appear; set ordered=true for a numbered list. HTML headings with an existing id keep that id as the anchor; duplicate headings get unique -1, -2 suffixes. Pass the document as `document`.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "document": {
          "description": "The Markdown or HTML document to build a table of contents from.",
          "type": "string"
        },
        "input_format": {
          "default": "auto",
          "description": "How to read the document: auto-detect, or force markdown/html.",
          "enum": [
            "auto",
            "markdown",
            "html"
          ],
          "type": "string"
        },
        "max_level": {
          "default": 6,
          "description": "Deepest heading level to include (1-6).",
          "maximum": 6,
          "minimum": 1,
          "type": "integer"
        },
        "min_level": {
          "default": 1,
          "description": "Shallowest heading level to include (1-6).",
          "maximum": 6,
          "minimum": 1,
          "type": "integer"
        },
        "ordered": {
          "default": false,
          "description": "Use a numbered list instead of bullets.",
          "type": "boolean"
        },
        "output_format": {
          "default": "markdown",
          "description": "Table-of-contents format: markdown list or nested HTML list.",
          "enum": [
            "markdown",
            "html"
          ],
          "type": "string"
        }
      },
      "required": [
        "document"
      ],
      "type": "object"
    }
  }
}