google.internal._gm_tool_name_for

(internal) Gemini correlates tool results by NAME, not id: find the tool name for a result id by scanning the ai.AssistantMessage ai.ToolUse blocks in the journal.

Reference version

Signature

function google.internal._gm_tool_name_for(j: ai.Journal, id: string) -> string throws never

(internal) Gemini correlates tool results by NAME, not id: find the tool name for a result id by scanning the ai.AssistantMessage ai.ToolUse blocks in the journal.

Source:<builtin>/google/ns_internal/gemini.bamlbytes 19685–20427