Google AI Mode (Beta)
google_ai_modeQuery Google AI Mode with a question or URL to return its parsed AI-generated answer and cited source links, supporting brand visibility and AI search monitoring.
Instructions
Beta: success rate and response time can vary; retry failed requests.
Ask Google AI Mode a question and retrieve its parsed AI-generated answer.
Returns the AI-generated answer as structured data, with the sources (links) it cites, for a query or for a Google AI Mode URL (a Google search URL that contains udm=50).
When to use:
Seeing what Google's AI answers for a query, and which sources it cites
Brand visibility or AI search monitoring on Google, with geo-targeting and language options
When NOT to use:
Classic organic Google results (use 'google_search')
Answers from the Gemini chat app (use 'google_gemini')
Answers from ChatGPT (use 'chatgpt_search')
Answers from Perplexity (use 'perplexity_search')
Args: params (GoogleAiModeParams): either query or url (one is required), plus optional localization (tld, country_code, uule, hl, gl), include_html, and output_format.
Returns: str: JSON (default) or CSV containing the structured AI answer.
Raises: ToolError: If the API key is missing, the rate limit is exceeded, or the request fails.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"params": "<params>"
},
"name": "google_ai_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |