{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cueframe-ai/json-schema/cueframe-ai-consult-request-schema.json",
  "title": "ConsultRequest",
  "description": "POST /projects/:id/consult body.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cueframe-ai-consult-api-openapi.yml#/components/schemas/ConsultRequest",
  "type": "object",
  "properties": {
    "intent": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000,
      "description": "Plain-English goal — what you're trying to achieve with this edit."
    },
    "mode": {
      "description": "advise = proposer-only (no render/judge, no grounded assessment); amend (default) = grade the current composition + author the fix for the weakest criterion; explore = ranked slate of diverse directions. All modes are async — poll the returned job.",
      "type": "string",
      "enum": [
        "advise",
        "amend",
        "explore"
      ]
    },
    "focus": {
      "description": "Optional criterion to concentrate the advice on.",
      "type": "string",
      "enum": [
        "editorial",
        "spatial",
        "brand",
        "caption"
      ]
    },
    "ifMatch": {
      "description": "Etag of the composition the advice is computed against. Proposals are bound to it; apply a proposal BEFORE any other edit or it will 409.",
      "type": "string"
    }
  },
  "required": [
    "intent"
  ],
  "additionalProperties": false
}