feishu-file-sender
使用带有 filePath 参数的消息工具通过飞书频道发送文件。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~josephyb97-feishui-file-sendercURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~josephyb97-feishui-file-sender/file -o josephyb97-feishui-file-sender.md# Feishu File Sender
Send binary files (ZIP, PDF, images, etc.) to Feishu groups or users.
## Prerequisites
- OpenClaw configured with Feishu channel
- Target chat ID (group or user)
## Step 1: Package the Skill/File
```bash
cd /root/.openclaw/workspace/skills
zip -r /tmp/skill_name.zip skill_folder/
```
**Key:** Use relative path inside the zip, not absolute path.
## Step 2: Send via Feishu
```python
message(
action="send",
channel="feishu",
filePath="/tmp/skill_name.zip",
message="📦 Skill Name",
target="oc_xxxxxxxxxxxx" # chat ID
)
```
## Parameters
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| action | string | Yes | "send" |
| channel | string | Yes | "feishu" |
| filePath | string | Yes | Absolute path to file |
| message | string | Yes | Caption text |
| target | string | Yes | Chat ID (oc_xxx for groups, user ID for DM) |
## Common Issues
1. **File too large**: Feishu limits apply (~20MB for most)
2. **Wrong path**: Use absolute path `/tmp/xxx.zip`
3. **Relative path in zip**: Package from parent dir, e.g., `zip -r /tmp/out.zip folder/`
## Example: Send a Skill
```bash
# Package
cd /root/.openclaw/workspace/skills
zip -r /tmp/weather.zip weather/
# Send
message(action="send", channel="feishu", filePath="/tmp/weather.zip", message="📦 weather skill", target="oc_group_id")
```
---
## 中文说明
# 飞书文件发送器
向飞书群组或用户发送二进制文件(ZIP、PDF、图片等)。
## 前置条件
- 已配置飞书频道的 OpenClaw
- 目标会话 ID(群组或用户)
## 步骤 1:打包技能/文件
```bash
cd /root/.openclaw/workspace/skills
zip -r /tmp/skill_name.zip skill_folder/
```
**要点:** 在 zip 内使用相对路径,而非绝对路径。
## 步骤 2:通过飞书发送
```python
message(
action="send",
channel="feishu",
filePath="/tmp/skill_name.zip",
message="📦 Skill Name",
target="oc_xxxxxxxxxxxx" # chat ID
)
```
## 参数
| 参数 | 类型 | 必填 | 说明 |
|-----------|------|----------|-------------|
| action | string | 是 | "send" |
| channel | string | 是 | "feishu" |
| filePath | string | 是 | 文件的绝对路径 |
| message | string | 是 | 说明文字 |
| target | string | 是 | 会话 ID(群组为 oc_xxx,私聊为用户 ID) |
## 常见问题
1. **文件过大**:飞书有限制(多数约为 20MB)
2. **路径错误**:使用绝对路径 `/tmp/xxx.zip`
3. **zip 中使用了相对路径**:从父目录打包,例如 `zip -r /tmp/out.zip folder/`
## 示例:发送一个技能
```bash
# Package
cd /root/.openclaw/workspace/skills
zip -r /tmp/weather.zip weather/
# Send
message(action="send", channel="feishu", filePath="/tmp/weather.zip", message="📦 weather skill", target="oc_group_id")
```