{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/specstream-ai/json-schema/specstream-ai-web-search-call-schema.json",
  "title": "WebSearchCall",
  "description": "POST /v1/web-search: the GET's query parameters as a JSON body, same names and defaults,\nchecked as the GET checks them, so the question is never in an address.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/specstream-ai-openapi.json#/components/schemas/WebSearchCall",
  "additionalProperties": false,
  "properties": {
    "q": {
      "title": "Q",
      "type": "string"
    },
    "passages": {
      "default": false,
      "title": "Passages",
      "type": "boolean"
    },
    "compact": {
      "default": false,
      "title": "Compact",
      "type": "boolean"
    },
    "source_max_chars": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "maximum": 10000,
      "minimum": 1,
      "title": "Source Max Chars"
    },
    "num": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Num"
    },
    "page": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Page"
    },
    "speed": {
      "default": "default",
      "title": "Speed",
      "type": "string"
    },
    "language": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Language"
    },
    "country": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Country"
    },
    "safe": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Safe"
    },
    "news": {
      "default": false,
      "title": "News",
      "type": "boolean"
    },
    "images": {
      "default": false,
      "title": "Images",
      "type": "boolean"
    },
    "engines": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Engines"
    },
    "engines_asked": {
      "default": false,
      "title": "Engines Asked",
      "type": "boolean"
    },
    "image_size": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Image Size"
    },
    "min_width": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Min Width"
    },
    "min_height": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Min Height"
    },
    "max_width": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Max Width"
    },
    "max_height": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Max Height"
    },
    "image_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Image Type"
    },
    "image_color": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Image Color"
    },
    "image_aspect": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Image Aspect"
    },
    "pages_wait_ms": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "maximum": 3500,
      "minimum": 0,
      "title": "Pages Wait Ms"
    },
    "like": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Pages you want more of.",
      "title": "Like"
    },
    "unlike": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Pages you do not want.",
      "title": "Unlike"
    }
  },
  "required": [
    "q"
  ],
  "type": "object"
}