Skip to content

Bash tool called with invalid arguments: "expected string, received undefined" for command and description fields #14519

@demiryasin95

Description

@demiryasin95

Description

Image

OpenCode version:
(npm opencode-ai)
OS: Windows
Model: claude-opus-4-6 (via custom provider)
Error:
The bash tool is called with invalid arguments:

  • command: expected string, received undefined
  • description: expected string, received undefined
    Steps to reproduce:
  1. Start opencode CLI
  2. Ask it to perform any task that requires running a shell command
  3. Tool call fails with schema validation error
    Expected behavior:
    Bash tool should receive valid string arguments for command and description fields.

Plugins

No response

OpenCode version

1.2.10

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)windows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions