{
  "schemaVersion": "1.0.0",
  "name": "Cavalkid browser tools",
  "canonicalOrigin": "https://cavalkid.com",
  "execution": "Interactive browser tools. These are web entry points, not HTTP execution APIs or an MCP server.",
  "privacy": "Images are processed locally. Users explicitly choose files and downloads; no photo is sent to an LLM by these tools.",
  "locales": [
    "en",
    "es",
    "pt",
    "fr",
    "de"
  ],
  "tools": [
    {
      "id": "upload-fix",
      "entry": "/{locale}/upload-fix/",
      "input": [
        "JPEG",
        "PNG",
        "WebP",
        "HEIC",
        "requirements text",
        "screenshot"
      ],
      "operations": [
        "exact dimensions",
        "minimum and maximum byte limits",
        "local OCR with mandatory review",
        "batch of up to 10 photos",
        "decoded-output verification",
        "full-resolution comparison"
      ],
      "output": [
        "encoded photo",
        "SHA-256-linked JSON report",
        "ZIP",
        "settings-only share link"
      ],
      "requirementsSchema": "/data/upload-requirements.schema.json",
      "limitations": [
        "No official acceptance decision",
        "OCR is a suggestion and requires review",
        "No image HTTP execution endpoint",
        "No automatic recovery of missing detail",
        "KB means 1024 bytes"
      ],
      "reportSchema": "/data/upload-report.schema.json",
      "example": {
        "photo": "/examples/verified-photo.jpg",
        "report": "/examples/verified-photo.json",
        "source": "/images/portrait-example.jpg",
        "scope": "Technical encoding example, not biometric acceptance."
      }
    },
    {
      "id": "photo-check",
      "entry": "/{locale}/photo-check/",
      "input": [
        "JPEG",
        "PNG",
        "WebP"
      ],
      "operations": [
        "face count",
        "head/eye geometry",
        "in-plane tilt",
        "centering",
        "sharpness estimate",
        "average brightness",
        "background uniformity",
        "source crop resolution",
        "approximate profile background colour",
        "uncertain hair and shoulder edge review",
        "search permitted crop sizes when ideal alignment fails",
        "optional local background, lighting and spot corrections in editing mode"
      ],
      "output": [
        "visible measurements",
        "profile-dependent auto-alignment",
        "undo",
        "ZIP containing rendered PNG and JSON diagnostics",
        "background warning reason: uncertain-edges"
      ],
      "reportSchema": "/data/photo-check-report.schema.json",
      "limitations": [
        "No official acceptance decision",
        "No expression, identity or exact background colour verification",
        "Blurred or missing detail is not reconstructed",
        "Correction is remeasured and may leave unresolved issues",
        "Edge review is a mask-confidence heuristic, not independent proof of perfect background removal",
        "Opaque misclassified background can evade edge review",
        "UI displays passed checks out of nine; report score remains a weighted check summary, not completion or acceptance probability"
      ]
    },
    {
      "id": "application-file",
      "entry": "/{locale}/studio/",
      "input": [
        "JPEG",
        "PNG",
        "WebP",
        "HEIC",
        "HEIF"
      ],
      "operations": [
        "exact pixel dimensions",
        "crop or contain",
        "JPEG/PNG/WebP encoding",
        "maximum byte limit"
      ],
      "output": [
        "encoded preview",
        "actual byte count",
        "downloadable image"
      ],
      "limitations": [
        "Dimensions are not silently reduced to meet a byte cap",
        "Impossible caps return an error",
        "Not a biometric acceptance check"
      ]
    },
    {
      "id": "signature-cleanup",
      "entry": "/{locale}/studio/?task=signature",
      "operations": [
        "paper threshold cleanup",
        "transparent PNG",
        "exact output dimensions"
      ]
    },
    {
      "id": "print-sheet",
      "entry": "/{locale}/studio/?task=print",
      "operations": [
        "4 by 6 inch layout",
        "300-DPI JPEG metadata",
        "copy count bounded by available space"
      ],
      "output": [
        "1800 by 1200 JPEG"
      ]
    }
  ],
  "guidance": "A text model can explain requirements; these tools perform measurements and produce files from an image supplied in the browser. Do not imply that loading this manifest executes any tool.",
  "localIntegrations": {
    "availability": "Self-hosted local helpers; not deployed on cavalkid.com",
    "api": "npm run integration:api",
    "mcp": "npm run integration:mcp",
    "tools": [
      "extract_photo_requirements",
      "create_photo_tool_link"
    ],
    "imageProcessing": "Browser only. Helpers never receive images."
  },
  "reportValidation": {
    "schema": "/data/photo-check-report.schema.json",
    "rules": [
      "Exactly one of each of the nine check IDs",
      "Typed profile geometry, quality and editing settings",
      "Weighted score and allRequiredPass must match statuses",
      "uncertain-edges is allowed only for a background warning"
    ]
  }
}
