Google native tools (Gemini)
Gemini models have a set of Google native tools that are directly integrated into the model. Unlike universal tools, these tools are handled server-side without extra function-calling overhead.
Available Google native tools
| Tool | Tool key | Description |
|---|---|---|
| Google Search | googleSearch | Search for current information via Google |
| Code Execution | codeExecution | Write and execute Python code in a sandbox |
| URL Context | urlContext | Retrieve content from a specific URL |
| Google Maps | googleMaps | Search locations and request route information |
How it works
When you select a Gemini model and enable one or more Google native tools, these tools are handled directly by the model. The AI automatically decides when to use which tool based on your query.
Combining with other tools
Gemini 3 and newer can combine appropriate Google native tools with universal tools and the built-in Google and Microsoft connectors of AI-Public. Older Gemini models use only the native toolset when native tools are active, as their tool protocol does not reliably support combination.
Settings
| Setting | Value |
|---|---|
| Available for | Gemini models |
| Combination | Yes for Gemini 3 and newer; native-only for older models |
Advantages compared to universal tools
| Google native tools | Universal tools |
|---|---|
| Directly integrated in Gemini | External API call |
| No extra function-calling round | Extra latency due to tool call |
| Optimized for Gemini | Works with all models |
| Server-side handling | Client-side tool dispatching |
Code execution with files
Files you send in the chat are automatically uploaded to the Gemini Files API before the code execution tool is invoked. Afterward, the uploaded files are automatically cleaned up. This allows you to analyze CSV files, images, or other data directly.
Usage examples
- Google Search: "What was today's news about AI legislation?"
- Code Execution: "Calculate the average score of these numbers: 7, 8, 6, 9, 7"
- URL Context: "What is on the page https://example.com/document?"
- Google Maps: "What is the route from Amsterdam to Utrecht?"
Limitations
- Only available for Gemini models
- Combination with universal tools requires Gemini 3 or newer
- Requires the organization to have enabled Gemini models
Related tools
- Code Interpreter (OpenAI) — similar code execution for OpenAI models
- Code Execution (Claude) — similar code execution for Claude models
- Internet Search — universal search tool for all models