View raw JSON
{
"type": "object",
"required": [
"body"
],
"properties": {
"body": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"query"
],
"~standard": {
"vendor": "zod",
"version": 1,
"jsonSchema": {}
},
"properties": {
"count": {
"type": "integer",
"default": 5,
"maximum": 100,
"minimum": 1,
"description": "Number of results to return (1-100)."
},
"query": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "The search query."
},
"topic": {
"enum": [
"general",
"news"
],
"type": "string",
"default": "general",
"description": "Use 'general' for general web search, or 'news' for news-focused results."
},
"format": {
"enum": [
"markdown",
"text"
],
"type": "string",
"default": "text",
"description": "Formatting of highlight outputs."
},
"country": {
"type": "string",
"description": "ISO 3166 country to prioritize results from; default 'auto' infers it from the query."
},
"end_time": {
"type": "string",
"description": "End time for filtering results. ISO 8601 format."
},
"highlight": {
"type": "object",
"properties": {
"enable": {
"type": "boolean",
"default": true,
"description": "If true, returns query-relevant highlight in each result."
},
"max_tokens": {
"type": "integer",
"default": 512,
"maximum": 20000,
"minimum": 100,
"description": "Max tokens returned per highlight."
}
},
"additionalProperties": false
},
"safesearch": {
"enum": [
"off",
"strict"
],
"type": "string",
"default": "strict",
"description": "Explicit/adult content filtering."
},
"start_time": {
"type": "string",
"description": "Start time for filtering results. ISO 8601 format."
},
"time_basis": {
"enum": [
"auto",
"published",
"crawled"
],
"type": "string",
"default": "auto",
"description": "Which time field is used for time filtering."
},
"time_range": {
"enum": [
"day",
"week",
"month",
"year",
"d",
"w",
"m",
"y"
],
"type": "string",
"description": "Relative time window counting back from now. Mutually exclusive with start_time/end_time (which take precedence)."
},
"exclude_text": {
"type": "array",
"items": {
"type": "string",
"maxLength": 30
},
"maxItems": 5,
"description": "Strings that must not appear in the result page text."
},
"full_content": {
"type": "object",
"properties": {
"enable": {
"type": "boolean",
"default": false,
"description": "If true, returns full_content for each result."
},
"max_tokens": {
"type": "integer",
"default": 2048,
"maximum": 100000,
"minimum": 100,
"description": "Maximum tokens of full content included per result."
}
},
"additionalProperties": false
},
"include_text": {
"type": "array",
"items": {
"type": "string",
"maxLength": 30
},
"maxItems": 5,
"description": "Strings that must appear in the result page text."
},
"include_images": {
"type": "boolean",
"default": false,
"description": "Whether to include images in each result."
},
"exclude_domains": {
"type": "array",
"items": {
"type": "string",
"maxLength": 60
},
"maxItems": 1200,
"description": "Domains to specifically exclude from the search results."
},
"include_domains": {
"type": "array",
"items": {
"type": "string",
"maxLength": 60
},
"maxItems": 1200,
"description": "Domains to specifically include in the search results."
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}