Variable: webSearchRequestSchema
constwebSearchRequestSchema:ZodObject<{model:ZodOptional<ZodString>;query:ZodString; },$strip>
Schema for the web_search tool input.
webSearchRequest fields
Section titled “webSearchRequest fields”query: What to search the web for, phrased as a natural-language question or request. The model searches and answers in one step.model(optional): Optional calling-model preference. The tool always tries the highest web-search-capable Gemini first. When Gemini is unavailable, a matching GPT endpoint wins before the highest-ranked GPT fallback.