Feishu Manager
综合管理飞书文档、知识库、多维表格和云存储。
下载 3,914
通过飞书 OpenAPI 上传并发送 agent 生成的本地文件。
openclaw skills install @ziwenwang28/feishu-file-sender命令、参数、文件名以原文为准
OpenClaw 在本地生成文件,但飞书渠道插件只支持文本消息,没有文件投递能力。本 skill 通过直接调用飞书 OpenAPI(上传+发送)补齐这一底层能力,使生成的文件能回传到聊天中。
将本地文件上传到飞书并作为文件消息发送。
python3 scripts/feishu_file_sender.py \
--file /absolute/path/to/report.xlsx \
--receive-id oc_xxxpython3 scripts/feishu_file_sender.py \
--file /absolute/path/to/file \
--receive-id <chat_id|open_id> \
--receive-id-type <chat_id|open_id|user_id>--file(必填):本地文件绝对路径。--receive-id(可选):目标 chat_id 或 open_id。若省略,脚本会读取 OPENCLAW_CHAT_ID(或 OPENCLAW_RECEIVE_ID / FEISHU_CHAT_ID)。--receive-id-type(可选):若省略,将根据前缀自动识别: - oc_ → chat_id
- ou_ → open_id
- on_ → user_id
--file-type(可选):飞书上传的文件类型,默认 stream。cwd 匹配 OpenClaw 工作区,解析当前 agent id。~/.openclaw/openclaw.json 读取 appId/appSecret。file_key。channels.feishu.accounts 存在于 ~/.openclaw/openclaw.json,且 bindings 映射 agentId → accountId。--receive-id 或设置 OPENCLAW_CHAT_ID。log_id 进行排查。本技能会从本机 OpenClaw 配置中读取飞书凭证(~/.openclaw/openclaw.json):
channels.feishu.accounts.*.appIdchannels.feishu.accounts.*.appSecret这些凭证仅用于获取 tenant access token 并发送文件。技能不会存储或向其他地方传输凭证。
chat_id 发送到 当前聊天。scripts/feishu_file_sender.py已收录 1 个 Skill