Skip to content

Fix Antigravity Claude tool schema#393

Merged
su-kaka merged 2 commits into
su-kaka:masterfrom
FloatingDream528:fix/antigravity-claude-tool-schema
Jul 23, 2026
Merged

Fix Antigravity Claude tool schema#393
su-kaka merged 2 commits into
su-kaka:masterfrom
FloatingDream528:fix/antigravity-claude-tool-schema

Conversation

@FloatingDream528

Copy link
Copy Markdown
Contributor

Summary

  • keep Claude tool schemas in functionDeclarations.parameters for the Antigravity route
  • add a regression test for the Claude Opus tool-schema conversion

Reproduction

Claude Code requests through /antigravity/v1/messages failed with:

tools.0.custom.input_schema: Field required

parametersJsonSchema is accepted by the outer request format but is not propagated by the Claude model's internal conversion. Using parameters preserves the schema.

Validation

  • python -m pytest tests/test_gemini_fix.py -v
  • python -m py_compile src/converter/gemini_fix.py
  • manual local Claude Code request to claude-opus-4-6 through the Antigravity endpoint returned HTTP 200

@su-kaka
su-kaka merged commit d33c558 into su-kaka:master Jul 23, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants