xAI Web Search
Let a Grok-powered agent search the public web using xAI's native web search tool
Last updated
Let a Grok-powered agent search the public web using xAI's native web search tool
xAI Web Search gives your agent access to live public web search when it is powered by an xAI Grok model.
This tool lets a Grok agent look up current information on the web while it responds. It uses xAI's native web_search tool, which is built into the Grok model family — no separate MCP server is required.
xAI Web Search is only available when your agent is configured to use an xAI (Grok) model. When your agent uses a different model provider (OpenAI, Anthropic, Google, etc.) use GPT Search or Google Search instead.
Open an agent in the editor.
Make sure the agent's model is set to an xAI Grok model.
Click the button with the tooltip Add MCP Tool or Sub Agent.
In MCP Tools, click xAI Web Search.
xAI Web Search does not have any configuration fields in the settings sheet. The search is handled natively by the Grok model.
Look up current events or recent news using a Grok agent.
Check live web sources before the agent answers a question.
Enrich agent responses with up-to-date information from the public web.
This tool is powered by xAI's native web_search capability, not an external MCP server. It is automatically available when an xAI model is selected.
Use Chat in the editor to see when the agent calls xAI Web Search during a test run. See Testing with Chat.
To add or remove tools from an agent, see Creating and Configuring.
Last updated