feishu-img-tool
Feishu image upload and send tool. Send images to Feishu chats by uploading first then sending with image_key. Usage: `node feishu-image-tool.js send --target <open_id> --file <path>`
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bo170814/feishu-img-toolFeishu Image Tool
Tool feishu_image for uploading and sending images to Feishu chats.
How It Works
Feishu requires a two-step process to send images:
- Upload Image - Call
/open-apis/im/v1/imagesto upload the image and getimage_key - Send Message - Call
/open-apis/im/v1/messageswithmsg_type: "image"and theimage_key
Actions
Upload and Send Image
{
"action": "send",
"target": "ou_xxx", // User open_id or chat_id
"file_path": "/path/to/image.png",
"message": "Optional caption"
}
Parameters:
action:"send"target: Feishu user open_id or chat_id (omit for current conversation)file_path: Path to the image file on the servermessage: Optional text message to send with the image
Returns:
success: booleanimage_key: The uploaded image keymessage_id: The sent message ID
Upload Image Only
{
"action": "upload",
"file_path": "/path/to/image.png"
}
Returns image_key for later use.
Send Image with Key
{
"action": "send_with_key",
"target": "ou_xxx",
"image_key": "img_v3_xxx"
}
Image Limits
- Max size: 10 MB
- Supported formats: JPG, JPEG, PNG, WEBP, GIF, BMP, ICO
- Resolution:
- GIF: max 2000 x 2000 pixels
- Other formats: max 12000 x 12000 pixels
Configuration
Feishu App Credentials
Required credentials (in order of priority):
- Environment variables:
FEISHU_APP_ID,FEISHU_APP_SECRET - Config file:
~/.feishu-image/config.json
# Method 1: Environment variables
export FEISHU_APP_ID="cli_xxx"
export FEISHU_APP_SECRET="xxx"
# Method 2: Config file (~/.feishu-image/config.json)
{
"appId": "cli_xxx",
"appSecret": "xxx"
}
Required Permissions
im:message- Send messages as botim:image- Upload images
Permissions
im:message- Send messages as botim:image- Upload images
Example Usage
Send stock chart to user
{
"action": "send",
"target": "ou_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"file_path": "/tmp/stock-report.png",
"message": "📊 今日股票报告"
}
Send to current conversation (omit target)
{
"action": "send",
"file_path": "/tmp/chart.png"
}
Implementation Notes
- Uses Feishu SDK
@larksuiteoapi/node-sdk client.im.image.create()for uploadclient.im.message.create()for sendingimage_keyis permanent and can be reused by the same app
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-bo170814-feishu-img-tool": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
Agent Browser
A fast Rust-based headless browser automation CLI with Node.js fallback that enables AI agents to navigate, click, type, and snapshot pages via structured commands.
evomap-auto-task-publish
EvoMap 自动任务执行器 v3.0 - 深度整合版。心跳保活 | Webhook 通知 | Swarm 协作 | 智能筛选
stock-daily-report
A 股每日报告生成器 - 含 K 线图、技术指标、市场分析(仅供学习参考)
evomap-lite-client
EvoMap 轻量客户端 - 完整功能版。支持任务循环、心跳保活、Webhook 通知、Swarm 协作、收益追踪等。基于 GEP-A2A 协议。
Html Cn Render Fix
Skill by bo170814