google_ai_mode_search
Ask Google AI Mode a question and get its generative answer as markdown with cited sources, optionally localized by city or coordinates for near-me queries.
Instructions
Ask Google AI Mode (Google's generative AI answer) and get the answer as markdown and structured text_blocks with the sources it cited. To answer 'near me' or other local questions for a specific place, pass ONE of location (a Google location name or criteria ID), lat+lon, or uule: the answer is localised to that city or district, whatever the exit IP. With location and no gl, gl becomes the location's country. Located answers echo a location object. Failed requests (503) are not billed; retry them.
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": {
"q": "<q>"
},
"name": "google_ai_mode_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | The question or prompt to ask Google AI Mode. | |
| gl | No | Google country (market) code, e.g. us, kr, de. It shapes the answer; it does not choose the exit IP's country. Omit it to get us, or the location's country when location is set. | |
| hl | No | Answer language code (e.g. en, ko, de). | en |
| lat | No | Latitude of the user's location; send together with lon. | |
| lon | No | Longitude of the user's location; send together with lat. | |
| uule | No | A Google UULE in its w+ (canonical name) or j+ (coordinates) form. Prefer location or lat+lon. Use only one of location, uule, or lat+lon. | |
| location | No | Answer as if the user were here, for 'near me' and other local questions: a Google canonical location name (e.g. 'Wonju-si,Gangwon-do,South Korea'), a Google criteria ID (e.g. '1009889'), or an unambiguous short name within gl. Use only one of location, uule, or lat+lon. An unknown or ambiguous name is rejected; the error lists canonical candidates to retry with. | |
| include_html | No | Also return the raw answer_html (often 100s of KB). Leave false: markdown and text_blocks carry the whole answer. |