Skip to content

[Bug]: Google Antigravity tool calls displayed as text instead of executed #893

@patelhiren

Description

@patelhiren

Summary

When using Google Antigravity (google-antigravity/gemini-3-flash), tool calls are being displayed as text in the chat instead of being executed. The output format is:

[Tool Call: gateway (ID: gateway_1768372099304_19)] Arguments: { "action": "config.get" }

Steps to reproduce

Fresh install on macOS
Configure with google-antigravity/gemini-3-flash
Send any message that triggers a tool call (like "list all session files")
Agent outputs [Tool Call: ...] text instead of executing the tool
Agent stops until another message is sent

Environment

  • Clawdbot version: 2026.1.13 Also tried latest from git main shows 2026.1.14
  • OS: macOS
  • Install method (pnpm/npx/docker/etc): npm and pnpm

Logs or screenshots

06:02:29 info gateway/channels/whatsapp/inbound {"subsystem":"gateway/channels/whatsapp/inbound"} Inbound message +1 -> +1 (direct, 147 chars)
06:02:30 debug agent/embedded {"subsystem":"agent/embedded"} embedded run start: runId=925ce5ec-58d0-4fac-b66c-3baeb6c2e7d2 sessionId=d95677ec-fd7f-4aaf-82b7-38b45bcd6358 provider=google-antigravity model=gemini-3-flash thinking=low messageChannel=whatsapp
06:02:30 info agent/embedded {"subsystem":"agent/embedded"} {"provider":"google-antigravity","toolCount":21,"tools":["0:read","1:edit","2:write","3:exec","4:bash","5:process","6:whatsapp_login","7:browser","8:canvas","9:nodes","10:cron","11:message","12:gateway","13:agents_list","14:sessions_list","15:sessions_history","16:sessions_send","17:sessions_spawn","18:session_status","19:memory_search","20:memory_get"]} google tool schema snapshot
06:02:30 warn agent/embedded {"subsystem":"agent/embedded"} {"index":7,"tool":"browser","violations":["browser.parameters.properties.format"],"violationCount":1} google tool schema has unsupported keywords
06:02:30 warn agent/embedded {"subsystem":"agent/embedded"} {"index":8,"tool":"canvas","violations":["canvas.parameters.properties.format"],"violationCount":1} google tool schema has unsupported keywords
06:02:30 debug agent/embedded {"subsystem":"agent/embedded"} embedded run prompt start: runId=925ce5ec-58d0-4fac-b66c-3baeb6c2e7d2 sessionId=d95677ec-fd7f-4aaf-82b7-38b45bcd6358
06:02:30 debug agent/embedded {"subsystem":"agent/embedded"} embedded run agent start: runId=925ce5ec-58d0-4fac-b66c-3baeb6c2e7d2
06:02:31 debug agent/embedded {"subsystem":"agent/embedded"} embedded run agent end: runId=925ce5ec-58d0-4fac-b66c-3baeb6c2e7d2
06:02:31 debug agent/embedded {"subsystem":"agent/embedded"} embedded run prompt end: runId=925ce5ec-58d0-4fac-b66c-3baeb6c2e7d2 sessionId=d95677ec-fd7f-4aaf-82b7-38b45bcd6358 durationMs=1466
06:02:31 debug agent/embedded {"subsystem":"agent/embedded"} embedded run done: runId=925ce5ec-58d0-4fac-b66c-3baeb6c2e7d2 sessionId=d95677ec-fd7f-4aaf-82b7-38b45bcd6358 durationMs=1493 aborted=false
06:02:31 debug gateway/channels/whatsapp/outbound {"subsystem":"gateway/channels/whatsapp/outbound"} Sent chunk 1/1 to +1 (9ms)

2026-01-14T06:21:27.107Z info agent/embedded {"subsystem":"agent/embedded"} {"provider":"google-antigravity","toolCount":21,"tools":["0:read","1:edit","2:write","3:exec","4:bash","5:process","6:whatsapp_login","7:browser","8:canvas","9:nodes","10:cron","11:message","12:gateway","13:agents_list","14:sessions_list","15:sessions_history","16:sessions_send","17:sessions_spawn","18:session_status","19:memory_search","20:memory_get"]} google tool schema snapshot
2026-01-14T06:21:27.108Z warn agent/embedded {"subsystem":"agent/embedded"} {"index":7,"tool":"browser","violations":["browser.parameters.properties.format"],"violationCount":1} google tool schema has unsupported keywords
2026-01-14T06:21:27.108Z warn agent/embedded {"subsystem":"agent/embedded"} {"index":8,"tool":"canvas","violations":["canvas.parameters.properties.format"],"violationCount":1} google tool schema has unsupported keywords
2026-01-14T06:24:26.666Z info agent/embedded {"subsystem":"agent/embedded"} {"provider":"google-antigravity","toolCount":21,"tools":["0:read","1:edit","2:write","3:exec","4:bash","5:process","6:whatsapp_login","7:browser","8:canvas","9:nodes","10:cron","11:message","12:gateway","13:agents_list","14:sessions_list","15:sessions_history","16:sessions_send","17:sessions_spawn","18:session_status","19:memory_search","20:memory_get"]} google tool schema snapshot
2026-01-14T06:24:26.667Z warn agent/embedded {"subsystem":"agent/embedded"} {"index":7,"tool":"browser","violations":["browser.parameters.properties.format"],"violationCount":1} google tool schema has unsupported keywords
2026-01-14T06:24:26.669Z warn agent/embedded {"subsystem":"agent/embedded"} {"index":8,"tool":"canvas","violations":["canvas.parameters.properties.format"],"violationCount":1} google tool schema has unsupported keywords
2026-01-14T06:25:42.968Z info agent/embedded {"subsystem":"agent/embedded"} {"provider":"google-antigravity","toolCount":21,"tools":["0:read","1:edit","2:write","3:exec","4:bash","5:process","6:whatsapp_login","7:browser","8:canvas","9:nodes","10:cron","11:message","12:gateway","13:agents_list","14:sessions_list","15:sessions_history","16:sessions_send","17:sessions_spawn","18:session_status","19:memory_search","20:memory_get"]} google tool schema snapshot
2026-01-14T06:25:42.970Z warn agent/embedded {"subsystem":"agent/embedded"} {"index":7,"tool":"browser","violations":["browser.parameters.properties.format"],"violationCount":1} google tool schema has unsupported keywords
2026-01-14T06:25:42.971Z warn agent/embedded {"subsystem":"agent/embedded"} {"index":8,"tool":"canvas","violations":["canvas.parameters.properties.format"],"violationCount":1} google tool schema has unsupported keywords
2026-01-14T06:26:36.994Z info agent/embedded {"subsystem":"agent/embedded"} {"provider":"google-antigravity","toolCount":21,"tools":["0:read","1:edit","2:write","3:exec","4:bash","5:process","6:whatsapp_login","7:browser","8:canvas","9:nodes","10:cron","11:message","12:gateway","13:agents_list","14:sessions_list","15:sessions_history","16:sessions_send","17:sessions_spawn","18:session_status","19:memory_search","20:memory_get"]} google tool schema snapshot
2026-01-14T06:26:36.995Z warn agent/embedded {"subsystem":"agent/embedded"} {"index":7,"tool":"browser","violations":["browser.parameters.properties.format"],"violationCount":1} google tool schema has unsupported keywords
2026-01-14T06:26:36.996Z warn agent/embedded {"subsystem":"agent/embedded"} {"index":8,"tool":"canvas","violations":["canvas.parameters.properties.format"],"violationCount":1} google tool schema has unsupported keywords
2026-01-14T06:27:42.865Z info agent/embedded {"subsystem":"agent/embedded"} {"provider":"google-antigravity","toolCount":21,"tools":["0:read","1:edit","2:write","3:exec","4:bash","5:process","6:whatsapp_login","7:browser","8:canvas","9:nodes","10:cron","11:message","12:gateway","13:agents_list","14:sessions_list","15:sessions_history","16:sessions_send","17:sessions_spawn","18:session_status","19:memory_search","20:memory_get"]} google tool schema snapshot
2026-01-14T06:27:42.867Z warn agent/embedded {"subsystem":"agent/embedded"} {"index":7,"tool":"browser","violations":["browser.parameters.properties.format"],"violationCount":1} google tool schema has unsupported keywords
2026-01-14T06:27:42.868Z warn agent/embedded {"subsystem":"agent/embedded"} {"index":8,"tool":"canvas","violations":["canvas.parameters.properties.format"],"violationCount":1} google tool schema has unsupported keywords
2026-01-14T06:28:01.113Z info agent/embedded {"subsystem":"agent/embedded"} {"provider":"google-antigravity","toolCount":21,"tools":["0:read","1:edit","2:write","3:exec","4:bash","5:process","6:whatsapp_login","7:browser","8:canvas","9:nodes","10:cron","11:message","12:gateway","13:agents_list","14:sessions_list","15:sessions_history","16:sessions_send","17:sessions_spawn","18:session_status","19:memory_search","20:memory_get"]} google tool schema snapshot
2026-01-14T06:28:01.114Z warn agent/embedded {"subsystem":"agent/embedded"} {"index":7,"tool":"browser","violations":["browser.parameters.properties.format"],"violationCount":1} google tool schema has unsupported keywords
2026-01-14T06:28:01.115Z warn agent/embedded {"subsystem":"agent/embedded"} {"index":8,"tool":"canvas","violations":["canvas.parameters.properties.format"],"violationCount":1} google tool schema has unsupported keywords
2026-01-14T06:28:53.383Z info agent/embedded {"subsystem":"agent/embedded"} {"provider":"google-antigravity","toolCount":21,"tools":["0:read","1:edit","2:write","3:exec","4:bash","5:process","6:whatsapp_login","7:browser","8:canvas","9:nodes","10:cron","11:message","12:gateway","13:agents_list","14:sessions_list","15:sessions_history","16:sessions_send","17:sessions_spawn","18:session_status","19:memory_search","20:memory_get"]} google tool schema snapshot
2026-01-14T06:28:53.384Z warn agent/embedded {"subsystem":"agent/embedded"} {"index":7,"tool":"browser","violations":["browser.parameters.properties.format"],"violationCount":1} google tool schema has unsupported keywords
2026-01-14T06:28:53.385Z warn agent/embedded {"subsystem":"agent/embedded"} {"index":8,"tool":"canvas","violations":["canvas.parameters.properties.format"],"violationCount":1} google tool schema has unsupported keywords
Log tail truncated (increase --max-bytes).

Chatted with Krill here (https://discord.com/channels/1456350064065904867/1460869535945982065) and he says

Root Cause:
The downgradeGeminiHistory function in src/agents/pi-embedded-helpers/google.ts is converting ALL tool calls to text when they lack thought_signature, not just historical ones. This function runs in sanitizeSessionHistory before every agent run for Google models, incorrectly converting pending tool calls to text.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions