I want to use the model's own tools in Gemini using AI agents. Is it possible?

Describe the problem/error/question

When using Google Gemini with the HTTP Request node, I can use the google_search tool as follows:

{"system_instruction": {
      "parts": [
        {
          "text": "blah blah"
        }
      ]
    },
      "contents": [
          {
              "parts": [
                  {"text": "blah blah"}
              ]
          }
      ],
      "tools": [
          {
              "google_search": {} // <-- here
          }
      ]
  }

However, when using ai agent node, it is convenient, but I can’t find a way to connect google_search tool.

I wonder if there is actually no function or if I can’t find it.

Information on your n8n setup

  • n8n version: 1.94.1
  • Database (default: SQLite): SQLite
  • Running n8n via (Docker, npm, n8n cloud, desktop app): npm
  • Operating system: Ubuntu

Perhaps use the Request tool in AI Agent?

Do you try that before?

I simply used it like this without the ai agent:

If I try it as you mentioned, will it work?
Please explain a little more.