Skip to content

[BUG]: todoread tool missing schema causes 400 error with Antigravity API #9131

Closed

Description

@MalteBoehm

Description

The todoread tool is defined without a schema (hasSchema=n in debug output), which causes HTTP 400 errors when using Antigravity API (via opencode-antigravity-auth plugin).

Antigravity's API strictly validates tool definitions and rejects requests where any tool has an empty/missing parameters schema.

Error

Request contains an invalid argument.
Status: 400
Tool Debug Missing: 1
Tool Debug Summary: ... decl=todoread,src=functionDeclarations,hasSchema=n ...

Expected Behavior

todoread should have a minimal schema, e.g.:

{
  "parameters": {
    "type": "object",
    "properties": {
      "_placeholder": {
        "type": "boolean",
        "description": "Placeholder. Always pass true."
      }
    },
    "required": ["_placeholder"]
  }
}

This matches the pattern used by other tools like todowrite.

Environment

  • opencode version: 1.1.25
  • Plugin: opencode-antigravity-auth@beta
  • Platform: macOS ARM64

Workaround

Currently no workaround - cannot use Antigravity API with opencode due to this bug.

Related

This may affect other providers with strict schema validation.

Activity

  1. github-actions commented on Jan 17, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    These issues are all related to the todoread tool's missing schema and parameter validation, affecting various LLM backends that have strict validation requirements (Antigravity API, SGLang, Gemini 3, etc.).

    Feel free to ignore if none of these address your specific case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions