Send files to Feishu/Lark users and chat groups with proper formatting and error handling.
Use this skill when:
# 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"
.pdf, .doc, .docx, .txt, .md.xls, .xlsx, .csv.jpg, .jpeg, .png, .gif, .webp.zip, .rar, .tar.gz.py, .js, .html, .json, etc.message action=send filePath="/workspace/report.pdf"
message action=send filePath="/workspace/data.xlsx" message="Q4 sales data"
Send files one by one with context:
for file in files:
message action=send filePath=file
# 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"
# Generate report
exec command="python generate_report.py"
# Send to user
message action=send filePath="/workspace/output/report.pdf" message="Your report is ready"
# 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)}"
Common issues and solutions:
| Error | Cause | Solution |
|---|---|---|
| ------- | ------- | ---------- |
| File not found | Wrong path | Use absolute path with filePath |
| Access denied | Permissions | Check file permissions with ls -la |
| Too large | File size limit | Compress or split file |
| Channel error | Feishu config | Verify channel is properly configured |
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
auto-file-sender - Automatic file sending when files are generatedfeishu-file-transfer - Large file transfer via Feishu APIVersion: 1.0
Compatible with: OpenClaw v1.x+
Platform: Feishu / Lark
共 1 个版本