Gemini Built-in tools
Gemini Built-in tools gives you access to the tools Google Gemini has built in: searching Google, running calculations and analyses, reading the content of web pages and querying Google Maps. You write a request, Gemini uses the chosen tool and returns a written answer, with links to the sources when there are any.
You can use it as a step in a flow, with the request in Input or instruction, or as a tool for an agent: connect its Tool output to the agent’s Tools input and the agent uses it when it needs to search Google, calculate or check a map.
When to use it
- An agent needs to answer with current information from the internet and say where it comes from.
- You want to limit sources to official websites, such as official gazettes or government sites.
- A booking assistant has to recommend restaurants or work out routes with Google Maps.
- You want to summarise or compare the content of several web pages from their addresses.
- You need precise calculations or data analysis inside an answer.
Configuration
You need a Google Gemini credential with your Google AI Studio key. See Credentials.
| Field | What it does |
|---|---|
| Built-in tool | The Gemini tools to use. You can tick several: google_search (search Google), code_execution (calculations and analyses), url_context (read the web pages whose addresses you include in the request) and google_maps (places, routes and business details). Default: google_search. |
| Input or instruction | The question or request, for example Tax changes for freelancers published this month. |
| Model | The Gemini model that answers. The list shows the models in your Google account. |
| Google API Key | Your Google Gemini account key. |
Advanced options
| Field | What it does |
|---|---|
| System Prompt | General instructions for the model, such as the tone or format of the answer. |
| User Prompt | The request template. {input_query} is replaced by the text in Input or instruction. Default: just {input_query}. |
| Temperature | How varied the answers are: low values give more predictable answers. Default: 1. |
| Max Output Tokens | The maximum length of the answer. Default: 4096. |
| Top P and Top K | Fine-tuning of how the model picks words. Leave them empty unless you know you need them. |
| Latitude and Longitude | Only with google_maps. The location the query is made from, for questions like “restaurants near here”. |
| Enable Maps Widget | Only with google_maps. Adds to the result what you need to show Google’s interactive map on your own website. Off by default. |
| Enable Inline Citations | When on, the answer includes numbered links to the sources, like [1](link), next to each statement. On by default. |
| Allowed Source Domains | Domains accepted as sources, separated by commas, for example gov.uk,hmrc.gov.uk. Sources from other domains are discarded. When empty, all are accepted. |
| Blocked Source Domains | Domains never accepted as sources, separated by commas. |
| Enable Search Cache | When on, Google searches equivalent to recent ones reuse the earlier answer, which saves time and usage. On by default. |
| Cache TTL (hours) | How many hours a saved answer is reused for. Default: 24. |
Output
- Data: Gemini’s answer, with citations if they are on. Depending on the tool used, it also includes the list of sources with their links, the Google searches it ran, or the calculation and its result.
- Tool: the tools ready for an agent. The agent gets one tool for each option ticked in Built-in tool among
google_search,code_executionandgoogle_maps. Useurl_contextas a flow step, not as an agent tool. Connect it to the agent’s Tools input.
Example
A tax advisory firm wants an assistant that answers tax questions using official sources only.
- Add Gemini Built-in tools with
google_searchticked and choose the firm’s Google Gemini credential. - In Allowed Source Domains, type
gov.uk,hmrc.gov.uk. - Connect the Tool output to the agent’s Tools input.
- When a client asks about a filing deadline, the agent searches, answers and links the official page the information comes from.
Good practices
- For an agent, tick only the tools it really needs: that way it chooses better which one to use.
- If you change the allowed sources or need up-to-the-minute data, bear in mind the cache can return an answer up to Cache TTL (hours) hours old. Turn off Enable Search Cache if you always need fresh results.
Related components
- OpenAI Built-in tools: OpenAI’s built-in tools.
- Gemini File Search Store: questions about your own documents with Gemini.