{
  "slug": "split-text",
  "name": "gizza-ai/split-text",
  "version": "0.1.0",
  "title": "Split Text by Delimiter — One Item Per Line — gizza.ai",
  "description": "Split text on any delimiter into one item per line — comma, tab, custom, whitespace, or characters, with trim and drop-blanks options. Free, in-browser.",
  "tags": [
    "split text",
    "text splitter",
    "delimiter",
    "comma to lines",
    "one per line",
    "split by whitespace",
    "split into characters",
    "csv to list"
  ],
  "category": "text",
  "urls": {
    "page": "https://gizza.ai/tools/split-text/",
    "markdown": "https://gizza.ai/tools/split-text/index.md",
    "descriptor": "https://gizza.ai/tools/split-text/tool.json",
    "deep_link_example": "https://gizza.ai/tools/split-text/?text=apple%2C%20banana%2C%20cherry&delimiter=%2C&mode=literal&trim=true&remove_empty=true"
  },
  "cli": "gizza tool split-text \"apple, banana, cherry\"",
  "tool": {
    "description": "Split text on a chosen delimiter into one item per line. By default splits on a comma; set delimiter to any substring (escapes \\n, \\t, \\r, \\\\ are recognised). Use mode='whitespace' to split on runs of spaces/tabs/newlines, or mode='chars' to put each character on its own line. Set trim=true to strip surrounding whitespace from each item and remove_empty=true to drop blank items (e.g. from a trailing delimiter). Returns the items joined by newlines.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "delimiter": {
          "default": ",",
          "description": "The substring to split on (default ','). Escapes are recognised: \\n (newline), \\t (tab), \\r, and \\\\ (a literal backslash). Ignored when mode is 'whitespace' or 'chars'.",
          "type": "string"
        },
        "mode": {
          "default": "literal",
          "description": "How to split. 'literal' (default) splits on each occurrence of the delimiter; 'whitespace' splits on runs of any whitespace (delimiter ignored); 'chars' emits one character per line (delimiter ignored).",
          "enum": [
            "literal",
            "whitespace",
            "chars"
          ],
          "type": "string"
        },
        "remove_empty": {
          "default": false,
          "description": "Drop empty items (after trimming, if trim is on) — useful for trailing delimiters or blank fields. Default false.",
          "type": "boolean"
        },
        "text": {
          "description": "The text to split.",
          "type": "string"
        },
        "trim": {
          "default": false,
          "description": "Trim leading/trailing whitespace from each item. Default false.",
          "type": "boolean"
        }
      },
      "required": [
        "text"
      ],
      "type": "object"
    }
  }
}