Responses web-search tool when you want a model to retrieve fresh web context as part of a normal response workflow. Search support still depends on the selected model.
Request Shape
For normal public search workflows on this gateway, start withtools: [{"type": "web_search"}].
That simple identifying tool shape is the documented public default here.
How to read results
- the main answer still arrives as normal
output_text - citations can appear as annotations on the returned text parts
- your app should inspect annotations if it needs to render sources explicitly
Citation Shape
Search citations can appear as annotations onoutput_text parts.
Streaming Behavior
- text arrives in
response.output_text.delta - citations can arrive in
response.output_text.annotation.added - the stream closes with
response.completedand[DONE]
Caveats
- support still depends on the selected model and upstream provider
- inspect annotations instead of scraping citations out of the generated text
- use normal non-search prompting when the answer does not need fresh web context