openclaw - 💡(How to fix) Fix Feature: expose sendMedia as an agent tool for Feishu (and other channels) [1 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#60577Fetched 2026-04-08 02:49:31
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Participants

Root Cause

For agents that interact with humans in chat (the primary OpenClaw use case), sending images/GIFs/memes is a key part of natural communication. The current friction makes it an afterthought rather than a natural behavior.

Code Example

cd ~/repo/openclaw && node scripts/run-node.mjs message send --target <id> --channel feishu --media <path>

---

{
  "tool": "send_media",
  "params": {
    "to": "user:ou_xxx",
    "channel": "feishu",
    "media": "/path/to/image.gif"
  }
}
RAW_BUFFERClick to expand / collapse

Problem

Currently, the only way for an agent to send an image/GIF in Feishu is via the CLI:

cd ~/repo/openclaw && node scripts/run-node.mjs message send --target <id> --channel feishu --media <path>

This takes 15-20 seconds per invocation because it loads the entire plugin stack. The friction is high enough that agents effectively never send images in chat, even when configured to do so.

Meanwhile, Discord reactions are zero-cost (just an emoji in the reply), so agents naturally use them. The asymmetry in cost directly causes asymmetry in behavior.

Current State

The Feishu plugin already has the full media pipeline:

  • uploadImageFeishu() — upload to get image_key
  • sendImageFeishu() — send image message
  • sendMediaFeishu() — unified upload+send helper

These are exposed in the plugin SDK but not available as agent tools.

Proposal

Expose a send_media tool (or extend the existing feishu_chat tool) that lets the agent send images directly through the gateway, without spawning a CLI process.

Example tool call:

{
  "tool": "send_media",
  "params": {
    "to": "user:ou_xxx",
    "channel": "feishu",
    "media": "/path/to/image.gif"
  }
}

This would reduce send time from ~15s to <1s and make media-rich conversations practical.

Why This Matters

For agents that interact with humans in chat (the primary OpenClaw use case), sending images/GIFs/memes is a key part of natural communication. The current friction makes it an afterthought rather than a natural behavior.

extent analysis

TL;DR

Exposing a send_media tool or extending the existing feishu_chat tool can significantly reduce the time it takes for an agent to send images in Feishu.

Guidance

  • Investigate the feasibility of exposing the uploadImageFeishu(), sendImageFeishu(), and sendMediaFeishu() functions as agent tools to bypass the CLI process.
  • Consider the security implications of allowing agents to send media directly through the gateway.
  • Evaluate the potential performance benefits of reducing the send time from ~15s to <1s and its impact on agent behavior.
  • Review the proposed send_media tool call example to ensure it aligns with the existing plugin SDK and agent tool architecture.

Example

{
  "tool": "send_media",
  "params": {
    "to": "user:ou_xxx",
    "channel": "feishu",
    "media": "/path/to/image.gif"
  }
}

This example illustrates the proposed tool call, but its implementation details may vary depending on the specific requirements and constraints of the OpenClaw system.

Notes

The success of this proposal depends on the ability to integrate the send_media tool with the existing Feishu plugin and agent tool infrastructure. Additionally, the potential impact on system performance and security must be carefully evaluated.

Recommendation

Apply workaround: Expose a send_media tool or extend the existing feishu_chat tool to reduce the friction associated with sending images in Feishu, as this is likely to have a significant impact on agent behavior and overall system usability.

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

openclaw - 💡(How to fix) Fix Feature: expose sendMedia as an agent tool for Feishu (and other channels) [1 participants]