← 返回
未分类 中文

lark-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. Handle...
通过飞书消息工具向用户和群组发送文档、图片、PDF等文件。当用户需要通过飞书发送任何类型文件时使用。
timyljob2011-sudo timyljob2011-sudo 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 442
下载
💾 0
安装
1
版本
#latest

概述

Feishu File Sender

Send files to Feishu/Lark users and chat groups with proper formatting and error handling.

When to Use

Use this skill when:

  • User wants to send a file via Feishu
  • Need to deliver documents, images, PDFs to Feishu contacts
  • Transferring generated files (reports, exports, etc.) to Feishu
  • Sharing any file through Feishu messaging

Quick Start

# Basic file send
message action=send filePath="/path/to/file.pdf"

# With custom message
message action=send filePath="/path/to/report.docx" message="Here's the report you requested"

File Types Supported

  • Documents: .pdf, .doc, .docx, .txt, .md
  • Spreadsheets: .xls, .xlsx, .csv
  • Images: .jpg, .jpeg, .png, .gif, .webp
  • Archives: .zip, .rar, .tar.gz
  • Code files: .py, .js, .html, .json, etc.

Usage Examples

Send a Single File

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

Send with Caption

message action=send filePath="/workspace/data.xlsx" message="Q4 sales data"

Send Multiple Files

Send files one by one with context:

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

Send to Specific Target

# To a specific user
message action=send target="user:ou_xxx" filePath="/path/to/file"

# To a specific chat
message action=send target="chat:oc_xxx" filePath="/path/to/file"

Best Practices

  1. Always verify file exists before sending
  2. Provide context with the message parameter when helpful
  3. Check file size - Feishu has limits (typically 100MB-1GB depending on plan)
  4. Use absolute paths to avoid confusion

Common Patterns

After Generating a File

# Generate report
exec command="python generate_report.py"

# Send to user
message action=send filePath="/workspace/output/report.pdf" message="Your report is ready"

Batch File Delivery

# Collect all generated files
files = ["/workspace/file1.pdf", "/workspace/file2.xlsx"]

for i, file in enumerate(files, 1):
    message action=send filePath=file message=f"File {i} of {len(files)}"

Error Handling

Common issues and solutions:

ErrorCauseSolution
------------------------
File not foundWrong pathUse absolute path with filePath
Access deniedPermissionsCheck file permissions with ls -la
Too largeFile size limitCompress or split file
Channel errorFeishu configVerify channel is properly configured

Tool Reference

message tool (action=send)

action: send
filePath: /absolute/path/to/file    # Required: path to file
message: "Optional caption text"    # Optional: accompanying message
target: "user:xxx" or "chat:xxx"   # Optional: specific recipient
channel: feishu                     # Optional: defaults to current

Related Skills

  • auto-file-sender - Automatic file sending when files are generated
  • feishu-file-transfer - Large file transfer via Feishu API

Version: 1.0

Compatible with: OpenClaw v1.x+

Platform: Feishu / Lark

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-02 12:39 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

office-efficiency

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 937 📥 187,630
ai-agent

skill-creater

timyljob2011-sudo
根据用户需求生成完整的 AgentSkills。创建 SKILL.md、脚本、参考、资源文件夹,并打包为可直接上传的压缩包...
★ 2 📥 752
office-efficiency

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 474 📥 157,059