/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'"}"}'
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install feishu-files - 安装完成后,直接呼叫该 Skill 的名称或使用
/feishu-files触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
feishu-files 是什么?
A simple skill send files to feishu. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 178 次。
如何安装 feishu-files?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install feishu-files」即可一键安装,无需额外配置。
feishu-files 是免费的吗?
是的,feishu-files 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
feishu-files 支持哪些平台?
feishu-files 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 feishu-files?
由 Bingo(@bingothreed)开发并维护,当前版本 v1.0.2。