search tool. It can be consumed two ways: as a remote MCP server that Agent Creator agents call as a tool, or as a Builder app whose instruction you call directly from DSUL. It runs in the tenant app-instance context (it resolves the installing workspace’s own Google credential) and automatically routes between two backends depending on the tenant configuration:
- Gemini Grounding (default, when no
cxis set): behaves like a real google.com search of the entire web and returns a synthesizedanswerwith cited sources. Grounding runs on the Gemini API by default, or on Vertex AI (Google Cloud’s Gemini Enterprise Agent Platform) when the connection type is Gemini Grounding via Vertex AI: same request, same answer, much higher daily Grounding quotas, service-account JSON only. - Custom Search JSON API (legacy, when a Programmable Search Engine
cxis set): returns ranked organic results with rich filters (date, site, language, file type) and image search, but searches only the sites whitelisted in the Programmable Search Engine’s context, never the open web. Google has removed the “Search the entire web” option for new Programmable Search Engines, so this backend cannot cover the whole web; use Grounding (leavecxempty) for that.
AIza…) or a service-account JSON (signed into a short-lived Bearer token). Agents are identified by the capability Scope context_id,agent_id,user_id and gated by a per-workspace authorized-agents allowlist.
Web search as a tool
search tool gives agents fresh, post-cutoff web information (news, prices, schedules, official docs, product specs) instead of guessing.Grounded answers
Filtered & image search
cx), switch to the Custom Search backend for date/site/language filters, file-type restriction and image search.Who is this for?
This connector is used by three different roles. Jump to the section that matches yours; each one is self-contained.Agent builder
Platform admin
Workspace builder
search instruction directly. → Workspace builder tab.Prerequisites (Google side)
- A Google account with a Google Cloud project.
- The matching API must be enabled in that project:
- Gemini API (listed as Generative Language API,
generativelanguage.googleapis.com), for the default Gemini Grounding backend. - Vertex AI API (
aiplatform.googleapis.com), for Gemini Grounding via Vertex AI. The Cloud Console may list it as Agent Platform API, since Google renamed Vertex AI to Gemini Enterprise Agent Platform. The service account also needs the Vertex AI User role (roles/aiplatform.user) on the project. - Custom Search API (
customsearch.googleapis.com), for the legacycxbackend.
- Gemini API (listed as Generative Language API,
- A credential, one of:
- A Google Cloud API key (
AIza…): APIs & Services > Credentials > Create credentials > API key. - A service-account key JSON, for server-to-server use (signed JWT exchanged for a Bearer token). This is the only credential Vertex AI accepts.
- A Google Cloud API key (
- For the Custom Search backend only: a Programmable Search Engine (the
cxid), created at programmablesearchengine.google.com. A PSE searches only the sites you add to its context; Google has retired the “Search the entire web” option for newly created engines, so the Custom Search backend can no longer span the open web. For whole-web coverage, leavecxempty and use the Grounding backend.
gemini-3.6-flash, the connector’s default model), and even with billing enabled the Gemini API caps Grounding with Google Search at a low number of requests per day. For agents that search heavily, switch the connection type to Gemini Grounding via Vertex AI, whose Grounding quotas are much higher, or use the Custom Search backend (100 free queries/day, then paid).Platform admin (Governance): one-time platform setup
Platform admin (Governance): one-time platform setup
1. Configure the shared platform key
Enable the right API in the Cloud project
- Gemini Grounding (default). Enable the Gemini API, listed in the Cloud Console as Generative Language API (
generativelanguage.googleapis.com); the two names are the same service. Grounding with Google Search is not a separate API to enable: it is thegoogle_searchtool exposed inside the GeminigenerateContentcall, so enabling the Gemini API is all that the Grounding backend needs. - Gemini Grounding via Vertex AI. Enable the Vertex AI API (
aiplatform.googleapis.com, listed as Agent Platform API in recent consoles) and grant the service account the Vertex AI User role (roles/aiplatform.user) on the project. - Custom Search (legacy,
cxset). Enable the Custom Search API (customsearch.googleapis.com) and create a Programmable Search Engine at programmablesearchengine.google.com, noting itscx. Note the scope: a PSE returns results only from the sites whitelisted in its context, never the whole web; Google has removed the “Search the entire web” option for new engines. For broad web coverage, leavecxempty and use the Grounding backend instead.
gcloud services enable generativelanguage.googleapis.com).Get a Google credential
https://www.googleapis.com/auth/generative-language and https://www.googleapis.com/auth/cloud-platform scopes when exchanging the JWT. Vertex AI only accepts a service-account key JSON.Enter the key through the core workspace's config app
google-search workspace and launch its Configuration app maintainer view: <studio>/apps/google-search (e.g. https://studio.prisme.ai/apps/google-search). Set Connection type to Gemini Grounding, Gemini Grounding via Vertex AI or Legacy Custom Search, paste the platform global key, then fill in cx for the legacy mode, or the Gemini model for Grounding, plus the optional Google Cloud project and Vertex AI location for Vertex AI. Reopening the view prefills the connection type, cx, the model, the project and the location; the credential itself is never returned. To change only those fields later, leave the credential field empty and save again: the stored credential is kept. The app stores it in the core workspace’s secrets for you; do not edit Studio’s raw Secrets by hand. The global key stays in the google-search workspace and is never inherited by tenant instances; only search results are returned to tenants (proxied through the core centralSearch webhook).2. Declare the capability in AI Governance
Generic connectors (broad tool surfaces meant to be shared across many agents) are best exposed as a named capability in the org Capabilities catalog. Agent builders then enable that capability on their agents instead of pasting a raw MCP endpoint.mcp-type catalog entry pointing at this workspace’s MCP endpoint with the Scope context_id,agent_id,user_id already set. It also detects an existing entry and offers Update catalog entry instead. The button is shown only to org owners / admins, and the published entry is org-wide; every builder in the org can then attach the connector. Use this instead of the manual steps below; they remain for when you want to author the capability by hand.Open AI Governance > Capabilities
Point it at the MCP endpoint
agent_id in the scope is what lets the connector identify the calling agent.Make it available to agent builders
Smoke-test
search and grounds its answer on the returned sources.- Agent builder (Agent Creator)
- Workspace builder (DSUL)
Agent builder
Goal: let an agent you build in Agent Creator search the web through thesearch MCP tool.agent_id that Agent Creator injects through the capability Scope, and that agent must appear in the connector’s authorized-agents allowlist (managed in the configuration app). The Google credential itself is resolved server-side and never exposed to the agent.There are two ways to wire it up. Pick based on how much isolation you need.Option A: Enable the shared capability from the catalog
The fastest path: an org owner / admin has published a Google Search capability to the org Capabilities catalog (typically via the config app’s one-click Add to catalog button; see the Platform admin setup accordion above, §2), so you just pick it from the catalog. When the published entry points at a shared instance backed by a platform Google key, no per-agent allowlist applies.Open your agent in Agent Creator
Add the Google Search capability
context_id,agent_id,user_id) are already wired by the admin; nothing to paste, and the shared instance accepts every agent granted the capability, so there is no allowlist step on your side.Use it
search and grounds its answer with cited sources.Option B: Run it from your own workspace (recommended)
For production agents, install the connector in your own workspace and point the agent at that workspace’s MCP endpoint.Install and configure the connector in your workspace
cx.Allowlist your agent
Add the MCP capability to your agent
agent_id is what lets the connector identify and authorize your agent; without it, every call is rejected with an explicit “agent could not be identified” message.Brief the agent in its system prompt
Whichever option you pick, wiring the capability is not enough: the agent must know the tool exists and when to use it. Copy-pasteable starter:agent_id.Available Tools
Output Formats
Thesearch tool accepts an outputFormat argument that controls the MCP response shape:verbose(default): a human-readable markdown view (answer + sources with links + the queries actually run), optimized for LLM consumption and clickable source cards.structured: concise machine-readable JSON instructuredContent.both: the structured payload, with its JSON also rendered as text.
options.* parameters are hints Gemini may ignore; anything skipped is reported in warnings. searchType: "image" is rejected in Grounding mode (Custom Search only).Tool Details
search
Error Handling
Common Issues
“This agent is not authorized to use this connector”: The calling agent is not in the allowlist. Open the configuration app → Authorized agents → tick this agent (or enable Allow all agents) and Save. “The calling agent could not be identified”: The MCP capability Scope does not declareagent_id, so Agent Creator never injects the agent identity. Set the Scope to context_id,agent_id,user_id on the capability, then allow the agent in the config app.
“The platform global Google key is not configured” / “No platform global Google key is configured”: The workspace has no credential of its own and no platform global key is set. Paste a Google API key in the config app, or ask the platform administrator to set the global key on the core google-search workspace.
“Google API credential is malformed”: The pasted value is neither a valid AIza… API key nor a parseable service-account JSON. Re-copy the credential from the Google Cloud Console.
“Rate limit / quota exceeded while searching Google via Grounding”: In Grounding mode, the Grounding quota of the Gemini API is exhausted for the day. Switch the connection type to Gemini Grounding via Vertex AI, whose Grounding quotas are much higher. In Vertex AI mode, the project hit a Vertex AI quota: check the quotas of the Google Cloud project under IAM & Admin > Quotas and request an increase if needed.
“Forbidden while … on Vertex AI”: The Vertex AI API (Agent Platform API) is not enabled on the project, or the service account lacks roles/aiplatform.user on it. Enable the API and grant the role, then select Test connection again.
“Vertex AI requires a service-account JSON credential”: Gemini Grounding via Vertex AI was chosen with an AIza… API key. Paste a service-account key JSON instead, or switch back to Gemini Grounding.
“Vertex AI needs a Google Cloud project id”: The service-account JSON has no project_id. Fill in Google Cloud project in the configuration app.
“Invalid Vertex AI project id” / “Invalid Vertex AI location”: The project or location holds characters that cannot appear in a Google Cloud ID. Fix the value; the connector rejects it before any call to Google.
“Publisher model … was not found or your project does not have access to it” (Vertex AI): The Gemini model is not offered in the configured location, or the Vertex AI API is not enabled on the project. Leave Vertex AI location empty to use global, check the model name, and enable the API.
Image search returns nothing / an error: searchType: image only works on the Custom Search backend. Configure a Programmable Search Engine cx in the config app; in Grounding mode image search is rejected.
Filters seem ignored: In Grounding mode most options.* parameters (num, dateRestrict, siteSearch, …) are hints Gemini may not honor; check the warnings array in the structured output. Set a cx to switch to Custom Search, where filters are enforced.