Web Search
web_searchSearches the web via Gemini's Google Search grounding to return up to 20 results for a query, helping you locate current information and source links.
Instructions
Search the web using Gemini's built-in Google Search grounding.
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 | Search query | |
| num_results | No | Number of results |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||