/install feishu-files
\r \r
Skill: 飞书发文件\r
\r
飞书发文件(重要!目前只测试了图片和视频)\r
OpenClaw的message工具目前不能直接在飞书发送本地视频或图像。\r
正确方法:用exec工具执行curl调飞书API,分三步:\r
\r
Step 1: 获取tenant_access_token\r
APP_SECRET=$(python3 -c "import json; c=json.load(open('/root/.openclaw/openclaw.json')); print(c['channels']['feishu']['appSecret'])")\r APP_ID=$(python3 -c "import json; c=json.load(open('/root/.openclaw/openclaw.json')); print(c['channels']['feishu']['appId'])")\r TOKEN=$(curl -s -X POST 'https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal' \r -H 'Content-Type: application/json' \r -d '{"app_id":"'$APP_ID'","app_secret":"'$APP_SECRET'"}' \r | python3 -c "import json,sys; print(json.load(sys.stdin)['tenant_access_token'])")\r \r
Step 2: 上传图片获取image_key\r
IMAGE_KEY=$(curl -s -X POST 'https://open.feishu.cn/open-apis/im/v1/images' \r -H "Authorization: Bearer $TOKEN" \r -F "image_type=message" \r -F "image=@/path/to/image.png" \r | python3 -c "import json,sys; print(json.load(sys.stdin)['data']['image_key'])")\r \r
Step 3: 发送图片消息\r
curl -s -X POST 'https://open.feishu.cn/open-apis/im/v1/messages?receive_id_type=open_id' \r -H "Authorization: Bearer $TOKEN" \r -H "Content-Type: application/json" \r -d '{"receive_id":"收信人open_id","msg_type":"image","content":"{"image_key":"'$IMAGE_KEY'"}"}'
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install feishu-files - After installation, invoke the skill by name or use
/feishu-files - Provide required inputs per the skill's parameter spec and get structured output
What is feishu-files?
A simple skill send files to feishu. It is an AI Agent Skill for Claude Code / OpenClaw, with 178 downloads so far.
How do I install feishu-files?
Run "/install feishu-files" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is feishu-files free?
Yes, feishu-files is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does feishu-files support?
feishu-files is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created feishu-files?
It is built and maintained by Bingo (@bingothreed); the current version is v1.0.2.