adk-python icon indicating copy to clipboard operation
adk-python copied to clipboard

Domain Allowlist for `google_search` tool.

Open tionichm opened this issue 7 months ago • 2 comments

🔴 Required Information

  • We're using strict egress controls at my current client.
  • We cannot allow all domains.
  • google_search tool is requested by client users.

Is your feature request related to a specific problem?

I want to use the google_search tool, but I want to control which domains the agent can access.

Describe the Solution You'd Like

I want to instantiate the tool with a list of domains that it can access.

Impact on your work

It hampers my ability to provide the best possible results in our client's environment.

Willingness to contribute

Maybe, but I think that the implementation of the tool lives outside ADK, IIRC.

tionichm avatar Apr 23 '26 12:04 tionichm

Thanks for raising this feature request!

As you suspected in your description, the google_search tool in the ADK is a thin wrapper that enables the Gemini API's built-in Google Search capability. The ADK simply passes the tool configuration to the model, but the actual search execution and result retrieval happen entirely on the backend.

Currently, the GoogleSearch configuration only has an exclude_domains field. There is no parameter available for an allowlist/include list of domains.

Because this requires changes to the backend and the google-genai SDK types rather than the ADK itself, this repository isn't the best place for this request. I recommend raising this feature request in the Google GenAI SDK repository or via the GCP/Gemini API support channels.

sasha-gitg avatar Apr 23 '26 18:04 sasha-gitg

Thanks for raising this feature request!

As you suspected in your description, the google_search tool in the ADK is a thin wrapper that enables the Gemini API's built-in Google Search capability. The ADK simply passes the tool configuration to the model, but the actual search execution and result retrieval happen entirely on the backend.

Currently, the GoogleSearch configuration only has an exclude_domains field. There is no parameter available for an allowlist/include list of domains.

Because this requires changes to the backend and the google-genai SDK types rather than the ADK itself, this repository isn't the best place for this request. I recommend raising this feature request in the Google GenAI SDK repository or via the GCP/Gemini API support channels.

Thank you!

tionichm avatar Apr 23 '26 18:04 tionichm