feishu

SKILL.md

飞书集成技能

执行规则

必须通过 run.py 调用,禁止直接执行脚本:

python scripts/run.py lark_cli.py <command> [options]

run.py 负责自动管理虚拟环境(创建 .venv、安装依赖、激活环境)。


命令参考

消息

命令 说明 参数
send-text 发送文本消息 --chat-id (必填) --message (必填)
python scripts/run.py lark_cli.py send-text --chat-id "<chat_id>" --message "<消息内容>"

群组

命令 说明 参数
list-chat 获取机器人所在的群列表
python scripts/run.py lark_cli.py list-chat
# 返回:群名称 + chat_id

云文档

命令 说明 参数
root-folder 获取根文件夹元数据
list-file 获取文件夹文件清单
upload-markdown 上传 Markdown 文档 --file-path (必填) --file-name (可选)
upload-file 上传任意文件 --file-path (必填) --obj-type (可选, 默认 docx)
get-import-task 查询导入任务结果 --ticket (必填)
authorize-file 授权文件权限 --file-token (必填)
# 查看根文件夹
python scripts/run.py lark_cli.py root-folder

# 列出文件
python scripts/run.py lark_cli.py list-file

# 上传 Markdown
python scripts/run.py lark_cli.py upload-markdown --file-path "/path/to/doc.md" --file-name "文档名"

# 上传文件(返回 ticket)
python scripts/run.py lark_cli.py upload-file --file-path "/path/to/file" --obj-type "docx"

# 查询导入任务(用 upload-file 返回的 ticket)
python scripts/run.py lark_cli.py get-import-task --ticket "<ticket>"

# 授权文件(全量群组)
python scripts/run.py lark_cli.py authorize-file --file-token "<file_token>"
Weekly Installs
8
First Seen
5 days ago
Installed on
gemini-cli8
github-copilot8
codex8
kimi-cli8
cursor8
amp8