GoogleSearchTool interface Stay organized with collections Save and categorize content based on your preferences.
A tool that allows a Gemini model to connect to Google Search to access and incorporate up-to-date information from the web into its responses.
Important: If using Grounding with Google Search, you are required to comply with the "Grounding with Google Search" usage requirements for your chosen API provider:Gemini Developer API or Vertex AI Gemini API (seeService Terms section within the Service Specific Terms).Signature:
exportinterfaceGoogleSearchToolProperties
| Property | Type | Description |
|---|---|---|
| googleSearch | GoogleSearch | Specifies the Google Search configuration. Currently, this is an empty object, but it's reserved for future configuration options.When using this feature, you are required to comply with the "Grounding with Google Search" usage requirements for your chosen API provider:Gemini Developer API or Vertex AI Gemini API (seeService Terms section within the Service Specific Terms). |
GoogleSearchTool.googleSearch
Specifies the Google Search configuration. Currently, this is an empty object, but it's reserved for future configuration options.
When using this feature, you are required to comply with the "Grounding with Google Search" usage requirements for your chosen API provider:Gemini Developer API or Vertex AI Gemini API (seeService Terms section within the Service Specific Terms).
Signature:
googleSearch:GoogleSearch;Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-18 UTC.