Skip to content

The write tool was called with invalid arguments: SchemaError #24604

Closed as not planned

Description

@nirolfa

Description

Got this suddenly
The write tool was called with invalid arguments: SchemaError(Missing key
at ["content"]).
Please rewrite the input so it satisfies the expected schema.

using qwen/qwen3.6-35b-a3b on lmstudio, was working fine before

Plugins

no plugins

OpenCode version

opencode 1.14.28

Steps to reproduce

ask to write plan for next steps in project (in plan mode)

good news, is that if you are in build mode, it's seems to work

very strange :(

Screenshot and/or share link

No response

Operating System

ubuntu latest

Terminal

ghostty

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 27, 2026
  2. github-actions commented on Apr 27, 2026

    @github-actions
    Contributor

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

  3. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  4. nikhilkulkarni1755 commented on Jun 1, 2026

    @nikhilkulkarni1755

    Opened a PR for this — #30224. When the model sends wrong argument keys to the write tool the error message now tells it what keys it should have used, so it can fix the call on the next turn.

  5. github-actions commented on Aug 1, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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