/install feishu-media-delivery
Feishu Media Delivery
Use this skill as the last-mile delivery layer for multimodal agents.
It does not generate content. It only makes sure already-generated files are sent to Feishu with the correct protocol.
What this skill is for
Use this skill when you already have a generated result and need to deliver it to a Feishu user/chat.
Typical cases:
- A generated jpg/png must be sent as a real Feishu image message
- A generated mp4 must be sent as a real Feishu media message
- A multimodal agent finished generation and now needs reliable delivery
- You want to avoid protocol mistakes like sending jpg/mp4 as the wrong message type
Hard rules
Images
For images, do not send the local file as plain text or guess a generic attachment format.
Correct flow:
- Upload image to Feishu IM resource API
- Get
image_key - Send message with
msg_type=image
Use:
scripts/send-image.mjs
Videos
For mp4 videos, do not send them as file messages.
Correct flow:
- Upload mp4 to Feishu IM file API
- Get
file_key - Send message with
msg_type=media
Use:
scripts/send-media.mjs
Required environment
The scripts expect:
FEISHU_APP_IDFEISHU_APP_SECRET_PATHor default secret file at~/.openclaw/secrets/feishu_app_secret
Default secret path:
~/.openclaw/secrets/feishu_app_secret
Receive ID assumptions
The bundled scripts default to receive_id_type=open_id.
Use them directly when the target is a Feishu user open_id like:
ou_xxx
If you need group delivery later, extend the script to accept chat_id and switch receive_id_type.
Commands
Send image to a Feishu user
cd scripts
node send-image.mjs \x3Copen_id> /path/to/image.jpg
Example:
cd scripts
node send-image.mjs ou_xxx /tmp/result.jpg
Send mp4 video to a Feishu user
cd scripts
node send-media.mjs \x3Copen_id> /path/to/video.mp4 mp4 5000
Arguments:
- arg1: target open_id
- arg2: local mp4 path
- arg3: file type, usually
mp4 - arg4: duration in milliseconds, optional but recommended
Example:
cd scripts
node send-media.mjs ou_xxx /tmp/result.mp4 mp4 5000
Output expectations
A successful send should return Feishu success payloads such as:
code: 0msg: success
Do not assume transport success only from local script execution. Check the returned Feishu response.
Fallback policy
Image fallback
If real Feishu image sending fails, report that image delivery failed. Do not silently pretend the image was delivered.
Video fallback
If Feishu media sending fails, fallback to sending a direct link if one exists. State clearly that this is a fallback.
Recommended agent usage
For a multimodal content agent, use this skill after generation:
- image result ->
send-image.mjs - mp4 result ->
send-media.mjs
This keeps protocol details out of the model prompt and reduces failure risk for weaker models.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install feishu-media-delivery - 安装完成后,直接呼叫该 Skill 的名称或使用
/feishu-media-delivery触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Feishu Media Delivery 是什么?
Reliably deliver generated images and videos to Feishu/Lark users and chats. Use when an agent already has a local image/video result and must send it to Fei... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 174 次。
如何安装 Feishu Media Delivery?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install feishu-media-delivery」即可一键安装,无需额外配置。
Feishu Media Delivery 是免费的吗?
是的,Feishu Media Delivery 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Feishu Media Delivery 支持哪些平台?
Feishu Media Delivery 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Feishu Media Delivery?
由 harry zhu(@zhy2015)开发并维护,当前版本 v0.1.1。