{
  "slug": "document-splitter",
  "name": "gizza-ai/document-splitter",
  "version": "0.1.0",
  "title": "Document Splitter — split Markdown or HTML by section — gizza.ai",
  "description": "Split a long Markdown or HTML document into separate files, one per top-level heading. Runs entirely in your browser, no upload, no sign-up.",
  "tags": [
    "document splitter",
    "split markdown",
    "split html",
    "by heading",
    "sections",
    "chunk document"
  ],
  "category": "documents",
  "urls": {
    "page": "https://gizza.ai/tools/document-splitter/",
    "markdown": "https://gizza.ai/tools/document-splitter/index.md",
    "descriptor": "https://gizza.ai/tools/document-splitter/tool.json",
    "deep_link_example": "https://gizza.ai/tools/document-splitter/?document=%23%20First%20section%0ASome%20text%E2%80%A6%0A%0A%23%20Second%20section%0AMore%20text%E2%80%A6&format=markdown"
  },
  "cli": "gizza tool document-splitter \"# First section\nSome text…\n\n# Second section\nMore text…\"",
  "tool": {
    "description": "Split a long Markdown or HTML document into separate files, one per top-level section. Markdown splits at the smallest heading level present (e.g. every `#`); HTML splits at the smallest <hN> tag present. Content before the first heading becomes an 'intro' section. Returns each section's suggested filename, title, and content. Runs locally.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "document": {
          "description": "The Markdown or HTML document to split into per-section files.",
          "type": "string"
        },
        "format": {
          "default": "markdown",
          "description": "Document syntax: markdown (split on # headings) or html (split on <hN> tags).",
          "enum": [
            "markdown",
            "html"
          ],
          "type": "string"
        }
      },
      "required": [
        "document"
      ],
      "type": "object"
    }
  }
}