How to fetch
Do this in one turn, in order. The token dies in about a minute.
- If HasData tools are connected, call the full results tool whose name contains
google_serp_serpand does not containlight. Passq, plusgl,hl,location, ordeviceTypewhen the user named them. - Read the response for an
aiOverviewblock and itspageToken. If the block is missing, say this query returned no AI Overview for that country, language, and device. Stop. Do not invent an overview and do not switch to AI Mode unless the user asked for AI Mode. - Immediately call the tool whose name contains
google_serp_ai_overviewwith thatpageToken. The schema requirespageTokenand does not take a query.
If no HasData tool is connected, ask the user to press Connect. Do not install software and do not ask for an API key.
There is no separate CLI command for this second step. Do not call google-ai-mode and present it as the AI Overview.
Return the overview text and the cited links from the overview tool.