web_search
Retrieve real-time web search results with source citations. Filter by allowed or excluded domains.
Instructions
Search the web in real-time using xAI. Returns results with source citations.
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 |
|---|---|---|---|
| query | Yes | The search query | |
| allowed_domains | No | Only search within these domains (max 5). Cannot be used with excluded_domains. | |
| excluded_domains | No | Exclude these domains from search (max 5). Cannot be used with allowed_domains. |