Web Search
web_searchSearch the web with OpenAI's server-side search for current, cited results with real URLs. Get clean answers using your ChatGPT subscription.
Instructions
Search the web using OpenAI's native server-side web search. Returns clean, up-to-date results with real URLs and citations. Powered by your ChatGPT/Codex subscription.
contextSize: "low" (fast/cheap), "medium" (balanced, default), "high" (thorough/deep)
All search happens server-side at OpenAI, not locally
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "web_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | OpenAI model to use (default: gpt-5.6-luna) | |
| query | Yes | What to search for. Be specific for best results. | |
| context_size | No | How much web context to retrieve | medium |