SuperAPI AI 工具集

feishu-im-read

办公与效率

查看项目

更新于 10-15 17:34

技能介绍

用途:当需要读取飞书(Feishu/Lark)聊天内容时使用,支持获取群聊与单聊消息、话题回复,并下载消息中的附件和图片。

主要能力:按资料给出的映射,涉及发送消息(module=message,tool_action=send_message,需 chat_id 或 user_id 及 content)、读取消息历史(module=message,tool_action=history,需 chat_id)、上传文件(module=message,tool_action=upload_file,需 source 与 file_type)。消息类型支持 text、post(富文本)、image、file 等。

使用方式:通过命令行调用脚本,例如读取历史:python3 skills/feishu-cli/run.py '{"action": "tool", "module": "message", "tool_action": "history", "chat_id": "oc_xxx", "start_time": "2026-03-01", "end_time": "2026-03-10", "page_size": 20}'。发送消息示例:python3 skills/feishu-cli/run.py '{"action": "tool", "module": "message", "tool_action": "send_message", "chat_id": "oc_xxx", "content": "Hello! 这是一条测试消息"}'。chat_id 为群聊 ID(oc_ 开头),必填,可通过参数直传或由环境变量 LARK_CHAT_ID 自动注入(Lark channel 中默认已注入);user_id 为用户 open_id(ou_ 开头),用于私聊。

限制与分页:使用 page_token 与 page_size 进行分页,start_time 与 end_time 支持日期字符串,可按时间过滤。资料未提供鉴权、权限范围、错误处理与速率限制等细节。