Web search for agents: Google results as clean JSON (title, URL, date)
web_searchUse when an agent needs current web results for a query. Input: q, optional max (1-10, default 5), time_range (day, week, month, year). Output: JSON results with title, URL and date when known, provider and retrieval time. For page text use /v1/web/search-read. Provider failure is not charged. Use instead: web_search_read for the top pages' text too; web_answer for a sourced answer; news_brief for news on a topic. Example: ?q=x402+payment+protocol&max=5 Price: $0.006 per call, paid in USDC (Base, Monad, Polygon, Arbitrum or Solana) via x402.
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": {
"q": "<q>"
},
"name": "web_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Search query | |
| max | No | Number of results (default 5) | |
| time_range | No | Only results from the past day, week, month or year |