← 返回
效率工具

Feishu File Sender

飞书文件发送助手 - 通过临时目录解决OpenClaw飞书发送文件路径白名单问题 | Feishu File Sender - Solve OpenClaw Feishu file path whitelist issue
飞书文件发送助手 - 通过临时目录解决OpenClaw飞书发送文件路径白名单问题 | Feishu File Sender - Solve OpenClaw Feishu file path whitelist issue
yingyangdao
效率工具 clawhub v1.2.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 803
下载
💾 8
安装
1
版本
#latest

概述

飞书文件发送助手 | Feishu File Sender

> 解决 OpenClaw 飞书发送文件时的路径白名单问题!

> Solve OpenClaw Feishu file path whitelist issue!

📋 问题说明 | Problem

OpenClaw 发送飞书图片/文件时,飞书插件读取本地文件经过核心的路径白名单检查,导致只能发送白名单路径内的文件。

When sending Feishu images/files via OpenClaw, the Feishu plugin reads local files through OpenClaw's path whitelist check, which only allows files in whitelisted paths.

💡 解决方案 | Solution

  1. 配置技能读取权限 - 自动适配多系统
  2. 在临时目录下创建文件夹,发送前复制文件到临时目录
  3. 发送成功后删除临时文件

🚀 快速开始 | Quick Start

第一步:配置权限(必做)

cd skills/feishu-temp-file

# 显示权限选项
node scripts/perm-config.js

# 选择并应用配置 (1/2/3)
node scripts/perm-config.js 2

权限选项说明:

选项名称路径范围
---------------------
1限制级/home/admin, /tmp, /home
2中等/home, /tmp, /opt, /var, /srv
3宽松/** (整个系统)

第二步:检查目录权限

# 检查临时目录权限状态
node scripts/check-perm.js

第三步:使用技能

# 复制文件到临时目录
node scripts/prepare.js /path/to/your/file.png

# 发送成功后清理
node scripts/clean.js

📜 所有脚本 | All Scripts

脚本功能
------------
perm-config.js配置技能读取权限 (首次必做) ✅
check-perm.js检查临时目录权限状态
prepare.js复制文件到临时目录
list.js列出临时文件
clean.js清理临时文件
detect-system.js检测系统类型

📁 项目结构 | Project Structure

feishu-temp-file/
├── SKILL.md              
├── _meta.json            
├── package.json          
├── config.example.json   
└── scripts/
    ├── shared.js         
    ├── perm-config.js    # 配置权限 ✅ (新增)
    ├── check-perm.js     
    ├── prepare.js        
    ├── list.js           
    └── clean.js           

⚠️ 注意事项 | Notes

  1. 首次使用必须先运行 perm-config.js - 配置技能读取权限
  2. 选择权限级别后会自动写入 ~/.openclaw/openclaw.json
  3. 发送成功后记得清理临时文件

🔗 相关链接 | Links


提示: 建议选择"中等"权限,既方便使用又相对安全!

Tip: Recommend option 2 (Medium) for balance between convenience and security!

版本历史

共 1 个版本

  • v1.2.0 当前
    2026-03-30 10:12 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Baidu Qianfan Tools

yingyangdao
百度千帆工具箱 - 集成百度千帆平台多种免费 API | Baidu Qianfan Tools - Integrate Baidu Qianfan Platform APIs
★ 0 📥 764
productivity

Word / DOCX

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

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 445 📥 226,292