{
  "slug": "csv-insert-column",
  "name": "gizza-ai/csv-insert-column",
  "version": "0.1.0",
  "title": "CSV Insert Column — Add a Column Online — gizza.ai",
  "description": "Add a new column to a CSV at any position, filled with a constant value — in your browser. Free, private, no upload.",
  "tags": [
    "csv add column",
    "insert column",
    "csv constant column",
    "add field csv"
  ],
  "category": "data",
  "urls": {
    "page": "https://gizza.ai/tools/csv-insert-column/",
    "markdown": "https://gizza.ai/tools/csv-insert-column/index.md",
    "descriptor": "https://gizza.ai/tools/csv-insert-column/tool.json",
    "deep_link_example": "https://gizza.ai/tools/csv-insert-column/?data=a%2Cb%0A1%2C2%0A3%2C4&name=source&value=import&position=end&header=true&delimiter=%2C"
  },
  "cli": "gizza tool csv-insert-column \"a,b\n1,2\n3,4\" 'name=source'",
  "tool": {
    "description": "Insert a new column into a CSV at a chosen 1-based position (or 'end' to append), filling every data row with a constant `value`. The header row gets the column `name`. Useful for adding an id/source/constant flag column. `position` is clamped to the row width.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "data": {
          "description": "The CSV text.",
          "type": "string"
        },
        "delimiter": {
          "default": ",",
          "description": "Field separator: a single char or 'comma'/'tab'/'semicolon'/'pipe'. Default ','.",
          "type": "string"
        },
        "header": {
          "default": true,
          "description": "Treat the first row as a header (gets `name`; data rows get `value`). Default true.",
          "type": "boolean"
        },
        "name": {
          "description": "Header name for the new column (used when header=true).",
          "type": "string"
        },
        "position": {
          "default": "end",
          "description": "1-based position to insert at, or 'end' to append (default). Clamped to the row width.",
          "type": "string"
        },
        "value": {
          "default": "",
          "description": "Constant value to fill the new column in every data row. Default empty.",
          "type": "string"
        }
      },
      "required": [
        "data",
        "name"
      ],
      "type": "object"
    }
  }
}