Google Search connector

Search your own content with Google Cloud Vertex AI Search from AgentRuntime workflows.

On this page

The google-search connector queries a Vertex AI Search app in your own Google Cloud project. Use it to retrieve results from content you have indexed, such as a help center or internal docs, and pass them to an LLM step. It does not search the public web. For web search, see the Brave or Exa connectors.

Prerequisites

  • A Google Cloud project with a Vertex AI Search app that has content indexed.
  • A Google Cloud API key that is allowed to call Vertex AI Search (the Discovery Engine API).
  • The project ID and the app (engine) ID.
  • The project_contributor role or higher in your workspace, which lets you manage connections and MCP instances. See Roles and permissions.

Connect in AgentRuntime

  1. Collect your Google Cloud details

    In the Google Cloud console, note the project ID and the app ID of your Vertex AI Search app. Create an API key under APIs & Services, Credentials, and restrict it to the Vertex AI Search (Discovery Engine) API.

  2. Add the connector to your workspace

    Click MCP in the sidebar, then Add connectors. Find Google Search in the App catalog, select it, and click Add to workspace. The instance now appears on the MCP connectors page. See MCP instances.

  3. Add your credentials to a profile

    Open the new instance to reach Instance config. Under Profiles for this connector, click New profile, enter a Display name, and on the Type secrets on this screen tab fill in api_key, project_id, and app_id. This connector does not use Sign in with Google. Set Status to Active — can be used in workflows and click Save. Then click Use this profile for workflows.

  4. Test it

    In Workflow Studio, add the google_search_search tool from your Google Search instance (use Browse platform MCP if it is not listed), fill in its arguments, and run the workflow. A successful step means the connection works. Pass a query and any value for user_pseudo_id, such as test-user.

Note

To reuse the same credentials in more than one profile, save them first under Connections → New custom connection, using the exact key names from Configuration, then choose Use a saved connection on the profile instead.

What you can build

  • Support answers. A customer question goes to google_search_search, and an LLM drafts an answer from the returned results.
  • Internal doc assistant. A chat prompt searches your indexed documents and the best hits go back to the user.
  • Policy checks. A draft policy change searches related procedures, and an LLM lists gaps for a Human reviewer.

Tools

The Required arguments column lists the fields the tool's input schema marks as required. Some of them are optional in practice; if you have nothing to set, pass an empty value such as "", [], {}, or false.

The result includes results, count, total_size, and next_page_token.

ToolAccessWhat it doesRequired arguments
google_search_searchReadRun a query against Vertex AI Search using Discovery Engine searchLite.query, user_pseudo_id

Example

Search your Vertex AI Search app. user_pseudo_id is an anonymous ID used for personalization; any stable value works.

{
  "id": "search-kb",
  "type": "mcp",
  "name": "Search knowledge base",
  "tool_name": "google_search_search",
  "tool_args": {
    "query": "{{input.user_question}}",
    "user_pseudo_id": "{{input.session_id}}"
  },
  "timeout_s": 30
}

Configuration

KeyRequiredDescription
api_keyYesGoogle Cloud API key authorized for Vertex AI Search.
project_idYesGoogle Cloud project ID that owns the search app.
app_idYesVertex AI Search engine (app) ID.
api_baseNoDiscovery Engine API base URL. Default https://discoveryengine.googleapis.com/v1.

Troubleshooting

ProblemWhat to do
403 or "API key not valid"Enable the Discovery Engine API in the project and allow it on the key.
Empty resultsCheck that the app has indexed content and that the query matches it.
Wrong project or appCompare project_id and app_id with the values in the Google Cloud console.
Need more resultsPass next_page_token from the previous result if your tool arguments support paging, or refine the query.
Edit this pageagentruntime-io/agentruntime-docs