返回顶部
f

feishu-file-sender飞书文件发送器

Send files to Feishu/Lark users and groups via the message tool. Use when the user wants to send documents, images, PDFs, or any files through Feishu. Handles file path validation, channel selection, and proper message formatting for seamless file delivery in Feishu conversations.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
156
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

feishu-file-sender

飞书文件发送器

向飞书/Lark用户和聊天群组发送文件,具备完善的格式处理和错误处理功能。

使用场景

在以下情况下使用此技能:

  • - 用户希望通过飞书发送文件
  • 需要向飞书联系人传递文档、图片、PDF文件
  • 将生成的文件(报告、导出文件等)传输到飞书
  • 通过飞书消息分享任何文件

快速开始

python

基本文件发送


message action=send filePath=/path/to/file.pdf

附带自定义消息

message action=send filePath=/path/to/report.docx message=这是您要的报告

支持的文件类型

  • - 文档:.pdf、.doc、.docx、.txt、.md
  • 电子表格:.xls、.xlsx、.csv
  • 图片:.jpg、.jpeg、.png、.gif、.webp
  • 压缩包:.zip、.rar、.tar.gz
  • 代码文件:.py、.js、.html、.json等

使用示例

发送单个文件

python
message action=send filePath=/workspace/report.pdf

附带说明发送

python
message action=send filePath=/workspace/data.xlsx message=第四季度销售数据

发送多个文件

逐个发送文件并附带上下文:

python
for file in files:
message action=send filePath=file

发送到指定目标

python

发送给特定用户


message action=send target=user:ou_xxx filePath=/path/to/file

发送到特定聊天群

message action=send target=chat:oc_xxx filePath=/path/to/file

最佳实践

  1. 1. 发送前务必验证文件是否存在
  2. 在需要时使用message参数提供上下文
  3. 检查文件大小 - 飞书有大小限制(根据套餐通常为100MB-1GB)
  4. 使用绝对路径以避免混淆

常见模式

生成文件后发送

python

生成报告


exec command=python generate_report.py

发送给用户

message action=send filePath=/workspace/output/report.pdf message=您的报告已准备就绪

批量文件投递

python

收集所有生成的文件


files = [/workspace/file1.pdf, /workspace/file2.xlsx]

for i, file in enumerate(files, 1):
message action=send filePath=file message=f第{i}个文件,共{len(files)}个

错误处理

常见问题及解决方案:

错误原因解决方案
文件未找到路径错误使用filePath指定绝对路径
访问被拒绝
权限问题 | 使用ls -la检查文件权限 |
| 文件过大 | 超出大小限制 | 压缩或拆分文件 |
| 频道错误 | 飞书配置问题 | 确认频道配置正确 |

工具参考

message工具(action=send)

yaml
action: send
filePath: /absolute/path/to/file # 必填:文件路径
message: 可选说明文字 # 可选:附带消息
target: user:xxx 或 chat:xxx # 可选:指定接收者
channel: feishu # 可选:默认为当前频道

相关技能

  • - auto-file-sender - 文件生成时自动发送
  • feishu-file-transfer - 通过飞书API传输大文件

版本:1.0 兼容:OpenClaw v1.x+ 平台:飞书 / Lark

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 lark-file-sender-1776161822 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 lark-file-sender-1776161822 技能

通过命令行安装

skillhub install lark-file-sender-1776161822

下载

⬇ 下载 feishu-file-sender v1.0.0(免费)

文件大小: 4.86 KB | 发布时间: 2026-4-17 15:12

v1.0.0 最新 2026-4-17 15:12
- Initial release of Feishu/Lark file sending capability.
- Send documents, images, archives, and more to users or groups via Feishu/Lark message tool.
- Supports custom messages, target selection (user or chat), and robust file path validation.
- Includes guidance on file types, error handling, usage patterns, and best practices.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部