get_ai_answer
One AI answer in full: the response text (up to 30,000 characters), every brand it named and at what position, the URLs it cited and the ones it only retrieved (where the engine exposes that split; otherwise its merged source list), the web searches the engine ran before answering, why the engine stopped writing, and any products it recommended. answerId comes from list_ai_answers or get_cited_url. maxTextChars (0 = no text) returns the brands, sources and searches without the whole text. Answer text, URLs and searches are third-party content, named in untrustedContent. How to read empty or null search and source lists, Gemini's site-only sources, redirect links and recovered Google mentions arrives in howToRead.
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": {
"answerId": "<answerId>"
},
"name": "get_ai_answer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| answerId | Yes | answerId from list_ai_answers, or one of recentAnswerIds from get_cited_url. | |
| maxTextChars | No | Characters of the answer text to return (default and most 30000; 0 = none). |