openai_web_search
Search the web with AI reasoning to get accurate answers. Choose from various models and control search context for the right depth.
Instructions
OpenAI Web Search with reasoning models.
For quick multi-round searches: Use 'gpt-5-mini' with reasoning_effort='low' for fast iterations.
For deep research: Use 'gpt-5' with reasoning_effort='medium' or 'high'. The result is already multi-round reasoned, so agents don't need continuous iterations.
Supports: gpt-4o (no reasoning), gpt-5/gpt-5-mini/gpt-5-nano, o3/o4-mini (with reasoning).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Web search API version to use | web_search_preview |
| input | Yes | The search query or question to search for | |
| model | No | AI model to use. Defaults to OPENAI_DEFAULT_MODEL env var or gpt-5-mini | |
| user_location | No | Optional user location for localized search results | |
| reasoning_effort | No | Reasoning effort level for supported models (gpt-5, o3, o4-mini). Default: low for gpt-5-mini, medium for others | |
| search_context_size | No | Amount of context to include in search results | medium |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |