search_web
Search Google to retrieve organic web results plus knowledge panels, answer boxes, People Also Ask, and related queries, with freshness, country, language, and pagination filters.
Instructions
Google web search via Serper API. Returns organic results plus Knowledge Graph, Answer Box, People Also Ask, and related searches. For latest/current results pass freshness (e.g. py=past year). For a synthesized answer in one call, prefer search_rag_context (fast) or deep_research (thorough) instead of search→scrape chains.
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": "search_web"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for pagination. Default: 1. | |
| query | Yes | Search query (max 400 chars / 50 words). | |
| country | No | ISO 3166-1 alpha-2 country code (e.g. "US", "GB"). Default: "US". | |
| ui_lang | No | UI language (e.g. "en-US"). Default: "en". | |
| provider | No | Search backend: auto (failover chain), serper, tavily, brave, exa, firecrawl. Default: auto. | auto |
| freshness | No | Time filter: pd=past day pw=week pm=month py=year any=none (historical). Pass pd/pw/pm/py whenever the user asks for latest/current/recent results ("today", "this week", "latest", current year); omit or "any" for timeless or historical questions. The response footer echoes the filter that was applied. | |
| max_chars | No | Truncate response to this many characters (0 = no limit). | |
| verbosity | No | Output density: auto (server picks per audience), compact (~800 tokens, dev fast path), standard (KG+Box+10), full (everything, always for places/shopping/images/scholar). Default: auto. | auto |
| safesearch | No | "off" | "moderate" | "strict". Default: "moderate". | moderate |
| autocorrect | No | Auto-correct spelling. Default: true. | |
| num_results | No | Results (1–20, default 10). Note: >10 results uses 2 Serper credits. | |
| search_lang | No | Language code (e.g. "en", "de"). Default: "en". | |
| snippets_only | No | Return 1-line snippets only (token-saving for agents). Default: false. | |
| link_resolution | No | Google result links beyond the top 3 may come back as google.com/goto redirects. "auto" (default): top 3 resolved, any leftover goto links get a search_id for resolve_links. "all": also resolve every link now (free, but adds ~30 s when goto links are present). "none": fastest, links exactly as Google returns them. |