{
  "$id": "https://elicitra.eigen.rest/developers/v6/schemas/mcp/elicitra_knowledge_search.output.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "hasMore": {
          "type": "boolean"
        },
        "locale": {
          "enum": [
            "en-US",
            "it-IT"
          ],
          "type": "string"
        },
        "productVersion": {
          "maxLength": 128,
          "minLength": 1,
          "type": "string"
        },
        "resultCount": {
          "maximum": 4,
          "minimum": 0,
          "type": "integer"
        },
        "results": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "documentTitle": {
                "maxLength": 256,
                "minLength": 1,
                "type": "string"
              },
              "id": {
                "maxLength": 256,
                "minLength": 1,
                "type": "string"
              },
              "sectionTitle": {
                "anyOf": [
                  {
                    "maxLength": 256,
                    "minLength": 1,
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "text": {
                "maxLength": 2048,
                "minLength": 1,
                "type": "string"
              },
              "topic": {
                "enum": [
                  "overview",
                  "campaigns",
                  "credits",
                  "pricing_tiers",
                  "use_cases"
                ],
                "type": "string"
              }
            },
            "required": [
              "id",
              "topic",
              "documentTitle",
              "sectionTitle",
              "text"
            ],
            "type": "object"
          },
          "maxItems": 4,
          "type": "array"
        },
        "schemaVersion": {
          "const": 1,
          "type": "number"
        },
        "topicsSearched": {
          "items": {
            "enum": [
              "overview",
              "campaigns",
              "credits",
              "pricing_tiers",
              "use_cases"
            ],
            "type": "string"
          },
          "maxItems": 5,
          "minItems": 1,
          "type": "array",
          "uniqueItems": true
        }
      },
      "required": [
        "schemaVersion",
        "productVersion",
        "locale",
        "topicsSearched",
        "resultCount",
        "hasMore",
        "results"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "code": {
          "enum": [
            "NOT_FOUND",
            "REVISION_CONFLICT",
            "SCENARIO_LOCKED",
            "CAMPAIGN_LOCKED",
            "VALIDATION_FAILED",
            "QUOTA_EXCEEDED",
            "TOOL_NOT_AVAILABLE",
            "IDEMPOTENCY_KEY_REUSED",
            "REMOVAL_ACKNOWLEDGEMENT_REQUIRED",
            "UNAUTHORIZED",
            "FORBIDDEN",
            "RATE_LIMITED",
            "SERVICE_UNAVAILABLE"
          ],
          "type": "string"
        },
        "currentRevision": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "docsUrl": {
          "maxLength": 2048,
          "type": "string"
        },
        "editorUrl": {
          "maxLength": 2048,
          "type": "string"
        },
        "field": {
          "maxLength": 256,
          "type": "string"
        },
        "issues": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "maxLength": 128,
                "type": "string"
              },
              "message": {
                "maxLength": 1024,
                "type": "string"
              },
              "path": {
                "maxLength": 512,
                "type": "string"
              }
            },
            "required": [
              "path",
              "code",
              "message"
            ],
            "type": "object"
          },
          "maxItems": 100,
          "type": "array"
        },
        "message": {
          "maxLength": 1024,
          "minLength": 1,
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        },
        "studioUrl": {
          "maxLength": 2048,
          "type": "string"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    }
  ],
  "title": "elicitra_knowledge_search output",
  "type": "object"
}
