feishu-upload-skill上传文件到飞书云盘并发送到指定聊天,支持自动令牌管理、30MB大小限制和多种文件格式,需Node.js 18+环境。
Install via ClawdBot CLI:
clawdbot install DeeWooo/feishu-upload-skill飞书文件上传技能 - 直接上传文件到飞书并发送到聊天
✅ 文件上传:上传本地文件到飞书云盘
✅ 消息发送:发送文件消息到指定聊天
✅ 自动令牌管理:自动获取和刷新访问令牌
✅ 大小限制检查:自动检查30MB文件大小限制
✅ 多格式支持:支持各种文件类型(文本、图片、压缩包等)
✅ 纯Node.js实现:无需额外依赖,使用Node.js 18+原生功能
node feishu_complete_upload.js <文件路径> <聊天ID>
示例:
node feishu_complete_upload.js document.txt oc_dd899cb1a7846915cdd2d6850bd1dafa
node feishu_complete_upload.js <文件路径>
# 简单上传
node native_feishu_upload.js <文件路径>
# 获取访问令牌
./get_feishu_token.sh
feishu_complete_upload.js - 完整的上传和发送工具(推荐)native_feishu_upload.js - 使用原生FormData的简单上传工具get_feishu_token.sh - 获取和刷新访问令牌的脚本feishu_upload_simple.sh - Bash实现的简单上传脚本feishu_upload_fixed.sh - 修复版Bash上传脚本simple_feishu_upload.js - 简化版Node.js上传工具feishu_token.txt - 访问令牌缓存文件(自动生成)upload_result.json - 上次上传的结果文件tenant_access_token/im/v1/files API上传文件,获取file_keyfile_key发送文件消息到指定聊天POST /open-apis/auth/v3/tenant_access_token/internalPOST /open-apis/im/v1/filesPOST /open-apis/im/v1/messagesim:message:send_as_bot - 发送消息权限im:file:send_as_bot - 发送文件权限(可能需要)drive:file:upload已授权)# 创建测试文件
echo "测试内容" > test.txt
# 上传并发送到群聊
node feishu_complete_upload.js test.txt oc_dd899cb1a7846915cdd2d6850bd1dafa
# 上传图片
node feishu_complete_upload.js photo.jpg oc_dd899cb1a7846915cdd2d6850bd1dafa
# 压缩文件
tar -czf archive.tar.gz folder/
# 上传压缩包
node feishu_complete_upload.js archive.tar.gz oc_dd899cb1a7846915cdd2d6850bd1dafa
# 查看详细日志
DEBUG=1 node feishu_complete_upload.js file.txt chat_id
const { execSync } = require('child_process');
const result = execSync('node feishu_complete_upload.js file.txt chat_id').toString();
console.log(JSON.parse(result));
skills/目录MIT License - 自由使用和修改
Generated Mar 1, 2026
Teams working remotely can use this skill to quickly share documents, images, and compressed files directly into Feishu chats, streamlining communication without manual uploads. It's ideal for project updates, design reviews, or sharing reports in real-time, enhancing productivity across distributed teams.
Support agents can upload logs, screenshots, or diagnostic files from local systems to Feishu chats with customers or internal teams, facilitating faster issue resolution. This reduces the need for email attachments and ensures files are accessible in the chat history for reference.
Educators and trainers can distribute lecture notes, assignments, or multimedia materials directly to student groups on Feishu, automating file delivery. It supports various formats like text and images, making it useful for online courses or corporate training sessions.
Marketing teams can upload campaign materials, such as images, videos, or compressed brand assets, to Feishu for quick approval and sharing among stakeholders. This speeds up content workflows and ensures all files are centralized in team chats.
Organizations can use this skill to upload audit logs, compliance documents, or reports to Feishu for secure storage and discussion among auditors or legal teams. The automatic token management helps maintain access without manual intervention, suitable for regulated industries.
Offer this skill as part of a subscription-based service that integrates Feishu file uploads into existing business workflows, charging per user or API call. It can include premium features like advanced analytics or custom file handling, targeting enterprises needing streamlined collaboration tools.
Provide consulting services to customize and deploy this skill for specific client needs, such as adding industry-specific file types or integrating with other systems. Revenue comes from one-time setup fees and ongoing support contracts, appealing to businesses with unique requirements.
Release a free version with basic upload capabilities and monetize through premium upgrades like increased file size limits, batch uploads, or enhanced security features. This model attracts individual users and small teams, converting them to paid plans as needs grow.
💬 Integration Tip
Ensure Node.js 18+ is installed and Feishu app permissions are correctly configured for seamless integration into automation scripts or OpenClaw workflows.
CLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).
Read and send email via IMAP/SMTP. Check for new/unread messages, fetch content, search mailboxes, mark as read/unread, and send emails with attachments. Works with any IMAP/SMTP server including Gmail, Outlook, 163.com, vip.163.com, 126.com, vip.126.com, 188.com, and vip.188.com.
Gmail API integration with managed OAuth. Read, send, and manage emails, threads, labels, and drafts. Use this skill when users want to interact with Gmail. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).
Automatically logs into email accounts (Gmail, Outlook, QQ Mail, etc.) and generates daily email summaries. Use when the user wants to get a summary of their emails, check important messages, or create daily email digests.
Fetch content from Feishu (Lark) Wiki, Docs, Sheets, and Bitable. Automatically resolves Wiki URLs to real entities and converts content to Markdown.
Manage Feishu (Lark) calendars by listing, searching, checking schedules, syncing events, and marking tasks with automated date extraction.