← 返回
未分类 Key

Feishu Send Image

Send images directly in Feishu chat as native image messages (not file attachments). Use when: need to send a generated image, chart, screenshot, or any loca...
在飞书聊天中直接发送原生图片消息(而非文件附件)。适用场景:发送生成的图片、图表、截图或本地图片等。
jasonzhang2015 jasonzhang2015 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 795
下载
💾 1
安装
1
版本
#latest

概述

Feishu Send Image

Send local image files as native Feishu image messages via the Feishu Bot API.

Why This Skill Exists

OpenClaw's message tool with filePath, media, or buffer parameters only sends file attachments in Feishu, not inline images. This skill calls the Feishu API directly to send proper image messages.

Quick Usage

Run the script:

bash scripts/feishu_send_image.sh <image_path> <receive_id> <app_id> <app_secret> [receive_id_type]

Arguments

ArgDescription
------------------
image_pathLocal path to image (png/jpg/gif/webp)
receive_idFeishu open_id (user) or chat_id (group)
app_idFeishu app ID from ~/.openclaw/openclaw.jsonfeishu.accounts.default.appId
app_secretFeishu app secret from ~/.openclaw/openclaw.jsonfeishu.accounts.default.appSecret
receive_id_typeopen_id (default) or chat_id

Example

bash scripts/feishu_send_image.sh /tmp/chart.png \
  ou_38470740452f6083ce189b7ddec722f8 \
  cli_a92c368412f9dcb1 \
  7uM7aLqeqYqm0Fsy0IP5QhOyTBSwxlfT

Getting Credentials

Read ~/.openclaw/openclaw.json and extract:

  • channels.feishu.accounts.default.appId
  • channels.feishu.accounts.default.appSecret

The receiver's open_id comes from inbound message metadata (sender_id).

How It Works

  1. Get tokenPOST /auth/v3/tenant_access_token/internal with appId/appSecret
  2. Upload imagePOST /im/v1/images with image_type=message, returns image_key
  3. Send messagePOST /im/v1/messages with msg_type=image and the image_key

Output

On success: OK: image_key= message_id=

On failure: prints error and exits with code 1.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-01 13:41 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

life-service

Mijia Control

jasonzhang2015
通过小米云API控制米家智能设备,包括灯具、空调、暖气、浴霸、开关等设备。
★ 0 📥 621
office-efficiency

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 928 📥 186,884
office-efficiency

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 382 📥 144,776