feishu_im_bot_image
Download images and files from Feishu/Lark messages to local storage for bots. Use message IDs and resource keys to save attachments from direct messages, quoted messages, or group chats to the /tmp/openclaw/ directory.
Instructions
【以机器人身份】下载飞书 IM 消息中的图片或文件资源到本地。
适用场景:用户直接发送给机器人的消息、用户引用的消息、机器人收到的群聊消息中的图片/文件。即当前对话上下文中出现的 message_id 和 image_key/file_key,应使用本工具下载。 引用消息的 message_id 可从上下文中的 [message_id=om_xxx] 提取,无需向用户询问。
文件自动保存到 /tmp/openclaw/ 下,返回值中的 saved_path 为实际保存路径。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message_id | Yes | 消息 ID(om_xxx 格式),引用消息可从上下文中的 [message_id=om_xxx] 提取 | |
| file_key | Yes | 资源 Key,图片消息的 image_key(img_xxx)或文件消息的 file_key(file_xxx) | |
| type | Yes | 资源类型:image(图片消息中的图片)、file(文件/音频/视频消息中的文件) |