LLM request rejected: tools.21.custom.input_schema: JSON schema is invalid.

Solved
Ever since updating to 2026.2.15, I cannot get a single LLM response back from google-antigravity/claude-opus-4-6-thinking.
LLM request rejected: tools.21.custom.input_schema: JSON schema is invalid. It must match JSON Schema draft 2020-12
Solution
Yep — if tool #21 is
image
, the quickest way to get responses back is to stop advertising the
image
tool
to
google-antigravity
(Anthropic rejects the whole request if any tool schema fails validation).

Add this to your
openclaw.json
:

{
  tools: {
    byProvider: {
      "google-antigravity": { deny: ["image"] }
      // or even narrower:
      // "google-antigravity/claude-opus-4-6-thinking": { deny: ["image"] }
    }
  }
}


Then restart the gateway and retry.
Was this page helpful?