{
  "type": "object",
  "properties": {
    "brand": {
      "type": "string",
      "description": "The brand or product name to look for in the answer."
    },
    "question": {
      "type": "string",
      "description": "A question a buyer would actually type, e.g. \"best tool for tracking AI search visibility\". Not a keyword: the engines answer questions."
    },
    "domain": {
      "type": "string",
      "description": "The brand's domain. Supplying it enables citation detection, not just name matching."
    },
    "competitors": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 3,
      "description": "Up to 3 competitor names to check for in the same answer."
    },
    "engine": {
      "type": "string",
      "enum": [
        "perplexity",
        "chatgpt"
      ],
      "description": "Which engine answers: perplexity (the default) or chatgpt."
    }
  },
  "required": [
    "brand",
    "question"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "check_ai_visibility input",
  "description": "Use this when someone asks whether an AI answer engine names or cites a brand for a buying question, or which other brands it names. Sends one question to one search-grounded engine through its API and returns whether the brand was named, whether its domain was cited, which of the listed competitors"
}