{
  "slug": "image-crop",
  "name": "gizza-ai/image-crop",
  "version": "0.1.0",
  "title": "Crop an Image Online — gizza.ai",
  "description": "Crop any image right in your browser — set the x/y offset and the width/height of the rectangle to keep. No upload to a server, runs locally, free.",
  "tags": [
    "image",
    "crop",
    "trim",
    "cut",
    "rectangle"
  ],
  "category": "image",
  "urls": {
    "page": "https://gizza.ai/tools/image-crop/",
    "markdown": "https://gizza.ai/tools/image-crop/index.md",
    "descriptor": "https://gizza.ai/tools/image-crop/tool.json",
    "deep_link_example": "https://gizza.ai/tools/image-crop/?url=https://example.com/input&x=0&y=0&width=640&height=480"
  },
  "cli": "gizza tool image-crop 'url=https://example.com/input' 'x=0' 'y=0' 'width=640' 'height=480'",
  "tool": {
    "description": "Crop a rectangular region from the image at the given URL. Coordinates are in pixels with (0,0) at the top-left corner. Use when the user asks to keep only part of an image.",
    "parameters": {
      "properties": {
        "height": {
          "description": "Crop height in pixels (> 0).",
          "type": "integer"
        },
        "url": {
          "description": "Absolute http(s) URL to an image (PNG, JPEG, or WebP).",
          "type": "string"
        },
        "width": {
          "description": "Crop width in pixels (> 0).",
          "type": "integer"
        },
        "x": {
          "description": "Top-left X in pixels (>= 0).",
          "type": "integer"
        },
        "y": {
          "description": "Top-left Y in pixels (>= 0).",
          "type": "integer"
        }
      },
      "required": [
        "url",
        "x",
        "y",
        "width",
        "height"
      ],
      "type": "object"
    }
  }
}