Install
openclaw skills install inuyasha-feishu-imgFeishu IM messaging operations: send messages, images, files to users and groups via Bot API. Activate when user mentions: 飞书发图、发送图片、飞书消息、im:resource、image_k...
openclaw skills install inuyasha-feishu-imgUse the message tool with channel=feishu for all IM operations.
message(action=send, channel=feishu, target=<user_id or chat_id>, message="text")
Always use filePath or media, never paste a raw path in message text.
message(action=send, channel=feishu, target=<chat_id>, filePath="/absolute/path/to/image.jpg")
Or with caption:
message(action=send, channel=feishu, target=<chat_id>, media="/path/to/image.jpg", message="caption text")
The tool handles the two-step upload internally:
See references/image-sending-pitfalls.md for full diagnosis.
TL;DR root causes:
message tool → plain text, no uploadMEDIA:/absolute/path → security filter strips itimage_type wrong during upload (must be message, not avatar)tenant_access_token expired (TTL ~2h) → upload silently fails, key is empty| 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.
| 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.
tenant_access_token expires in ~2 hours. If uploads silently fail:
99991663 = image_key invalid99991400 = token expiredOpenClaw refreshes tokens automatically on each API call. If you see these errors, check Gateway logs.
references/image-sending-pitfalls.md — detailed failure mode diagnosis