Google Search Tool
Use the GoogleSearchTool to enable your agents to perform web searches using Google's Custom Search API. This tool is essential for agents that require real-time access to publicly available information on the internet to answer user queries, enrich responses with current data, or gather external context for decision-making.
The tool initializes with a Credential ID, which retrieves the API Key and Custom Search Engine (CSE) ID from the Credential Manager. Agents can use this tool to execute search queries and obtain the top results in JSON format.
| Field | Description |
| *Indicates mandatory field | |
| Name* | A unique, user-defined name for this specific instance of the GoogleSearchTool. This name is referenced within your agent's logic. |
| Description* | A brief explanation of this tool instance's function or purpose, helping to identify its role in the agent workflow. |
| Number of results to return* | Specifies the number of top search results to return for each query. This controls how much information is retrieved from the web. |
| Credentials to connect with* | Select the appropriate credential used to connect to the Google
Custom Search API. This must be a pre-configured Google Search API
Account credential, containing your Google API Key and CSE ID. Note: Refer to the Adding a Credential section for steps to configure
this. |