{
  "slug": "head-lines",
  "name": "gizza-ai/head-lines",
  "version": "0.1.0",
  "title": "Head — Get the First N Lines of Text — gizza.ai",
  "description": "Get the first N lines of any text in your browser — like head -n. Choose the line count, skip a header row, number each line. Free, private, no sign-up.",
  "tags": [
    "head",
    "first lines",
    "first n lines",
    "head -n",
    "top lines",
    "truncate lines",
    "line numbers",
    "text tool"
  ],
  "category": "text",
  "urls": {
    "page": "https://gizza.ai/tools/head-lines/",
    "markdown": "https://gizza.ai/tools/head-lines/index.md",
    "descriptor": "https://gizza.ai/tools/head-lines/tool.json",
    "deep_link_example": "https://gizza.ai/tools/head-lines/?text=line%201%0Aline%202%0Aline%203%0A...&count=10&skip=0&number=true"
  },
  "cli": "gizza tool head-lines \"line 1\nline 2\nline 3\n...\"",
  "tool": {
    "description": "Output the first N lines of text — the `head -n` / 'show the top rows' operation. Set count to how many leading lines to keep (default 10). Use skip to drop that many lines from the start before taking count. Set number=true to prefix each kept line with its 1-based original line number and a tab.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "count": {
          "default": 10,
          "description": "How many leading lines to keep (like `head -n`). Default 10.",
          "maximum": 1000000,
          "minimum": 1,
          "type": "integer"
        },
        "number": {
          "default": false,
          "description": "When true, prefix each kept line with its 1-based original line number and a tab (like `cat -n`). Default false.",
          "type": "boolean"
        },
        "skip": {
          "default": 0,
          "description": "Drop this many lines from the start before taking `count` (like `tail -n +K`). Default 0.",
          "minimum": 0,
          "type": "integer"
        },
        "text": {
          "description": "The text to take the first lines from (split on newlines).",
          "type": "string"
        }
      },
      "required": [
        "text"
      ],
      "type": "object"
    }
  }
}