openclaw - 💡(How to fix) Fix [Bug] Feishu message tool fails: card required property error [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#53724Fetched 2026-04-08 01:24:20
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
closed ×1commented ×1locked ×1

Error Message

The Feishu message tool fails with validation error:

RAW_BUFFERClick to expand / collapse

Description

The Feishu message tool fails with validation error:

Validation failed for tool message: card: must have required property card

This happens even with minimal arguments like sending plain text.

Environment

  • OpenClaw: 2026.3.23-2
  • Platform: Linux WSL2
  • Feishu plugin enabled

Expected: Should send text messages and images via Feishu.

Note: Feishu plugin has sendImageFeishu, uploadImageFeishu exported but message tool schema seems broken.

extent analysis

Fix Plan

The fix involves updating the Feishu message tool to include the required card property.

Steps to Fix

  • Update the message tool schema to include the card property.
  • Modify the send function to construct a valid card object.
  • Ensure the card object contains the required properties, such as config and elements.

Example Code

# Updated send function
def send(message):
    card = {
        "config": {
            "wide_screen_mode": True
        },
        "elements": [
            {
                "tag": "div",
                "text": {
                    "content": message
                }
            }
        ]
    }
    # Send the message with the constructed card
    return sendImageFeishu(card)

# Example usage:
send("Hello, this is a test message.")

Verification

  • Test the updated message tool by sending a plain text message.
  • Verify that the message is sent successfully without any validation errors.
  • Check the received message to ensure it contains the expected content.

Extra Tips

  • Refer to the Feishu plugin documentation for the latest schema requirements.
  • Ensure the sendImageFeishu and uploadImageFeishu functions are properly exported and imported.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING