/install inuyasha-feishu-img
Feishu IM Tool
Use the message tool with channel=feishu for all IM operations.
Send Text Message
message(action=send, channel=feishu, target=\x3Cuser_id or chat_id>, message="text")
Send Image (CORRECT method)
Always use filePath or media, never paste a raw path in message text.
message(action=send, channel=feishu, target=\x3Cchat_id>, filePath="/absolute/path/to/image.jpg")
Or with caption:
message(action=send, channel=feishu, target=\x3Cchat_id>, media="/path/to/image.jpg", message="caption text")
The tool handles the two-step upload internally:
- POST /im/v1/images → get image_key
- POST /im/v1/messages with image_key
Common Failure Modes — Images Show as Path/Link
See references/image-sending-pitfalls.md for full diagnosis.
TL;DR root causes:
- Assistant wrote raw file path in message text instead of calling
messagetool → plain text, no upload - Used
MEDIA:/absolute/path→ security filter strips it image_typewrong during upload (must bemessage, notavatar)tenant_access_tokenexpired (TTL ~2h) → upload silently fails, key is empty- Webhook custom bot used instead of Bot App → no access_token, can't upload images
Permissions Required
| Scope | Purpose |
|---|---|
im:resource |
Upload image/file to IM, get file_key / image_key |
im:message |
Send messages with media |
im:message:send_as_bot |
Send as bot identity |
All three are currently granted on this installation.
Bot Type Comparison
| Feature | Webhook Custom Bot | Bot App (自建应用) |
|---|---|---|
| Send text | ✅ | ✅ |
| Send image | ⚠️ base64 only (不推荐) | ✅ via image_key |
| access_token | ❌ 无 | ✅ tenant_access_token |
| Upload API | ❌ 不支持 | ✅ /im/v1/images |
OpenClaw uses Bot App — always use the message tool, not raw Webhook POST.
Token Refresh
tenant_access_token expires in ~2 hours. If uploads silently fail:
- Error code
99991663= image_key invalid - Error code
99991400= token expired
OpenClaw refreshes tokens automatically on each API call. If you see these errors, check Gateway logs.
References
references/image-sending-pitfalls.md— detailed failure mode diagnosis- Feishu API docs: https://open.feishu.cn/document/server-docs/im-v1/image/create
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install inuyasha-feishu-img - 安装完成后,直接呼叫该 Skill 的名称或使用
/inuyasha-feishu-img触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Feishu Image Sender 飞书发图指南 是什么?
Feishu IM messaging operations: send messages, images, files to users and groups via Bot API. Activate when user mentions: 飞书发图、发送图片、飞书消息、im:resource、image_k... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 608 次。
如何安装 Feishu Image Sender 飞书发图指南?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install inuyasha-feishu-img」即可一键安装,无需额外配置。
Feishu Image Sender 飞书发图指南 是免费的吗?
是的,Feishu Image Sender 飞书发图指南 完全免费(开源免费),可自由下载、安装和使用。
Feishu Image Sender 飞书发图指南 支持哪些平台?
Feishu Image Sender 飞书发图指南 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Feishu Image Sender 飞书发图指南?
由 jiao yang(@inuyashayang)开发并维护,当前版本 v1.0.0。