#google antigravity problem

1 messages · Page 1 of 1 (latest)

wild vine
#

i keep getting this message

Cloud Code Assist API error (400): Invalid JSON payload received. Unknown name "patternProperties" at 'request.tools[0].function_declarations[3].parameters.properties[2].value': Cannot find field.

brazen reefBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> âś… Mark Solution

wild vine
#

after update to the new openclaw

#

2026.2.19.2

rich wadiBOT
#

That error is coming from Google Antigravity / Cloud Code Assist rejecting the tool schema OpenClaw is sending.

Cloud Code Assist only accepts a strict subset of JSON Schema for function_declarations[].parameters, and it does not support keywords like patternProperties (and often also anyOf/oneOf/allOf, additionalProperties, format, etc.). One of the tools OpenClaw is advertising includes patternProperties, so the request gets 400’d.

Fix options

1) Update OpenClaw (best fix)

Newer builds include tool-schema “cleanup” so providers like Cloud Code Assist don’t choke on these keywords.

Please paste:

  • openclaw --version

…and if you can, run:

  • openclaw doctor
  • openclaw gateway restart

2) Workaround: restrict tools for google-antigravity

#

If you just want it to work (even with reduced tooling), add this to openclaw.json:

{
  tools: {
    byProvider: {
      "google-antigravity": { profile: "minimal" }
    }
  }
}

Then restart the gateway.

If you need some tools, you can loosen it later (e.g. allow only message / sessions_list), but start with minimal to confirm the root cause.

3) Switch models/providers

#

If you switch that agent to an Anthropic/OpenAI model, they generally tolerate OpenClaw’s full tool schema better than Cloud Code Assist.

If you reply with your openclaw --version + which model you’re using (from openclaw models status), I can tell you which of the above is likely the fastest path for your setup.

#

2026.2.19.2 is new enough — so if you’re still seeing Unknown name "patternProperties" it usually means:

  • you’re using the google-antigravity / Cloud Code Assist endpoint, and
  • it’s still rejecting parts of OpenClaw’s tool schema (Cloud Code Assist supports only a strict subset of JSON Schema).

The quickest workaround is to stop sending tools to that provider.

Workaround (recommended): minimal tools for google-antigravity

Run:

openclaw config set 'tools.byProvider["google-antigravity"].profile' minimal
openclaw gateway restart

That makes OpenClaw advertise basically no tools to Antigravity (so no patternProperties can appear), but everything else can keep full tools.