{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usewrit-app/json-schema/usewrit-app-selector-probe-schema.json",
  "title": "SelectorProbe",
  "description": "Live probe result (`monitor::SelectorProbe`). Optional fields are OMITTED when absent.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/usewrit-app-selectors-api-openapi.yml#/components/schemas/SelectorProbe",
  "type": "object",
  "required": [
    "selector_id",
    "matched"
  ],
  "properties": {
    "selector_id": {
      "type": "integer",
      "format": "int64"
    },
    "matched": {
      "type": "boolean"
    },
    "content": {
      "type": "string",
      "description": "Extracted text/html (truncated). Omitted for visual selectors or on a miss."
    },
    "content_hash": {
      "type": "string",
      "description": "SHA-256 content hash (text/html) or pixel hash (visual). Omitted on a miss."
    },
    "screenshot": {
      "type": "string",
      "description": "Base64 PNG of the captured region (visual selectors only)."
    },
    "status_code": {
      "type": "integer",
      "format": "int64"
    },
    "error": {
      "type": "string",
      "description": "Present when the selector did not resolve."
    }
  }
}