2025-12-01 11:38:48 -08:00
|
|
|
# Web search tool (`google_web_search`)
|
2025-06-07 10:47:30 -07:00
|
|
|
|
2026-02-13 14:09:17 -08:00
|
|
|
The `google_web_search` tool allows the Gemini agent to retrieve up-to-date
|
|
|
|
|
information, news, and facts from the internet via Google Search.
|
2025-06-07 10:47:30 -07:00
|
|
|
|
2026-02-13 14:09:17 -08:00
|
|
|
## Technical reference
|
2025-06-24 15:31:58 -07:00
|
|
|
|
2026-02-13 14:09:17 -08:00
|
|
|
The agent uses this tool when your request requires knowledge of current events
|
|
|
|
|
or specific online documentation not available in its internal training data.
|
2025-06-24 15:31:58 -07:00
|
|
|
|
|
|
|
|
### Arguments
|
|
|
|
|
|
2026-02-13 14:09:17 -08:00
|
|
|
- `query` (string, required): The search query to be executed.
|
2025-06-24 15:31:58 -07:00
|
|
|
|
2026-02-13 14:09:17 -08:00
|
|
|
## Technical behavior
|
2025-06-24 15:31:58 -07:00
|
|
|
|
2026-02-13 14:09:17 -08:00
|
|
|
- **Grounding:** Returns a generated summary based on search results.
|
|
|
|
|
- **Citations:** Includes source URIs and titles for factual grounding.
|
|
|
|
|
- **Processing:** The Gemini API processes the search results before returning a
|
|
|
|
|
synthesized response to the agent.
|
2025-06-24 15:31:58 -07:00
|
|
|
|
2026-02-13 14:09:17 -08:00
|
|
|
## Use cases
|
2025-06-24 15:31:58 -07:00
|
|
|
|
2026-02-13 14:09:17 -08:00
|
|
|
- Researching the latest version of a software library or API.
|
|
|
|
|
- Finding solutions to recent software bugs or security vulnerabilities.
|
|
|
|
|
- Retrieving news or documentation updated after the model's knowledge cutoff.
|
2025-06-24 15:31:58 -07:00
|
|
|
|
2026-02-13 14:09:17 -08:00
|
|
|
## Next steps
|
2025-06-24 15:31:58 -07:00
|
|
|
|
2026-02-13 14:09:17 -08:00
|
|
|
- Follow the [Web tools guide](../cli/tutorials/web-tools.md) for practical
|
|
|
|
|
usage examples.
|
|
|
|
|
- Explore the [Web fetch tool reference](./web-fetch.md) for direct URL access.
|