{
  "name": "image-probe",
  "summary": "Reports an image's format and pixel dimensions from its header, without decoding the pixels.",
  "rationale": "Reading an image header safely needs a real decoder and a hardened fetch: an agent that pulls the URL itself walks past every SSRF control, and carrying an image library per call is not something an agent does inline.",
  "family": "images",
  "price_usd": "0.003",
  "free": false,
  "timeout_ms": 20000,
  "max_timeout_seconds": 41,
  "input_schema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "url": {
        "type": "string",
        "maxLength": 2048,
        "format": "uri",
        "description": "Absolute http(s) URL of the image, up to 2048 characters; redirects are followed, the bytes must be jpeg, png, gif, webp, tiff, avif, heic or svg by signature, and only the header is parsed."
      }
    },
    "required": [
      "url"
    ],
    "additionalProperties": false
  },
  "input_example": {
    "url": "https://grist.tools/samples/images/tiles-64x40.png"
  },
  "output_example": {
    "source_url": "https://grist.tools/samples/images/tiles-64x40.png",
    "format": "png",
    "width": 64,
    "height": 40,
    "channels": 4,
    "space": "srgb",
    "has_alpha": true,
    "bytes": 10348
  },
  "errors": [
    "invalid_input",
    "blocked_target",
    "unreachable_target",
    "upstream_timeout",
    "unsupported_content_type",
    "too_large",
    "unprocessable",
    "internal"
  ]
}