Skip to content

[Bug]: message tool schema requires buttons parameter for all actions including react, delete, edit, poll #56496

Description

@stemkat100

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

The message tool schema declares buttons as a required parameter ("required": ["action", "buttons"]), causing all non-send actions (react, delete, edit, poll) to fail with validation error unless an empty buttons: [] array is passed.

Steps to reproduce

  1. Configure any Telegram channel in OpenClaw
  2. Have the agent call the message tool with action: "react", emoji: "🫡", messageId: "<any_id>"
  3. Do NOT include buttons parameter
  4. Observe validation failure: Validation failed for tool "message": - buttons: must have required property 'buttons'
  5. Retry with buttons: [] added - succeeds

Expected behavior

The message tool should accept action: "react" (and other non-send actions like delete, edit, poll) without requiring the buttons parameter. buttons should only be required when action: "send" and inline buttons are being used.

Actual behavior

Validation error returned:

Validation failed for tool "message":
  - buttons: must have required property 'buttons'

Received arguments:
{
  "action": "react",
  "emoji": "🫡",
  "messageId": "15147"
}

Adding buttons: [] as a workaround makes the call succeed. The reaction is applied correctly when the schema validation passes.

OpenClaw version

2026.3.24 (cff6dc9)

Operating system

macOS 26.3.1 (Darwin 25.3.0, arm64)

Install method

npm (global install via Homebrew node)

Model

anthropic/claude-opus-4-6 (also reproduces with claude-sonnet-4-6 and claude-haiku-4-5)

Provider / routing chain

Anthropic API direct (no proxy)

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbug:behaviorIncorrect behavior without a crash

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions