Skip to main content
Agents on Compose can search the web to ground their responses in current information. When an agent decides it needs fresh data, it runs a search call. The tool name is search_call.

Search modes

The agent picks a search provider based on the task. The mode field on the parsed event tells you which one was used: The agent chooses the mode automatically. You can read it from the event to show which provider was used.

Event shape

A parsed search tool event has these fields:

Stream example

Display metadata

The display object includes a summary of the search and the provider name. Use display.summary to show what the agent searched for in your UI.