Feishu Drive

m1heng/clawdbot-feishu/skills/feishu-drive

作者 m1hengb07885b756ac无许可证4.2K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库6个月前更新

Feishu cloud storage file management. Activate when user mentions cloud space, folders, drive.

AI 生成的概览

通过单一 feishu_drive 工具管理飞书云空间的文件与文件夹。

功能
提供一个 feishu_drive 工具,用于飞书云存储操作:列出文件夹内容、获取文件信息、创建文件夹、移动文件和删除文件。文档说明了如何从飞书链接提取 token、支持的文件类型(doc、docx、sheet、bitable、folder、file、mindnote、shortcut),以及 drive:drive 和 drive:drive:readonly 权限范围。还指出机器人没有根文件夹,只能访问已共享给它的内容。
适用场景
当用户提到云空间、文件夹或云盘,并需要浏览、查看、整理或删除飞书云存储中的文件时使用。适用于列出文件夹、查询文件、创建文件夹、移动文件或删除文件等请求。
运行要求
需要启用 drive 工具的飞书渠道,以及飞书云盘权限(drive:drive 为完全访问,drive:drive:readonly 为只读)。需要访问飞书的网络连接。该技能不附带脚本,仅为说明文档。

Feishu Drive Tool

Single tool feishu_drive for cloud storage operations.

Token Extraction

From URL https://xxx.feishu.cn/drive/folder/ABC123 → folder_token = ABC123

Actions

List Folder Contents

json
{ "action": "list" }

Root directory (no folder_token).

json
{ "action": "list", "folder_token": "fldcnXXX" }

Returns: files with token, name, type, url, timestamps.

Get File Info

json
{ "action": "info", "file_token": "ABC123", "type": "docx" }

Searches for the file in the root directory. Note: file must be in root or use list to browse folders first.

type: doc, docx, sheet, bitable, folder, file, mindnote, shortcut

Create Folder

json
{ "action": "create_folder", "name": "New Folder" }

In parent folder:

json
{ "action": "create_folder", "name": "New Folder", "folder_token": "fldcnXXX" }

Move File

json
{ "action": "move", "file_token": "ABC123", "type": "docx", "folder_token": "fldcnXXX" }

Delete File

json
{ "action": "delete", "file_token": "ABC123", "type": "docx" }

File Types

TypeDescription
docOld format document
docxNew format document
sheetSpreadsheet
bitableMulti-dimensional table
folderFolder
fileUploaded file
mindnoteMind map
shortcutShortcut

Configuration

yaml
channels:  feishu:    tools:      drive: true  # default: true

Permissions

  • drive:drive - Full access (create, move, delete)
  • drive:drive:readonly - Read only (list, info)

Known Limitations

  • Bots have no root folder: Feishu bots use tenant_access_token and don't have their own "My Space". The root folder concept only exists for user accounts. This means:
    • create_folder without folder_token will fail (400 error)
    • Bot can only access files/folders that have been shared with it
    • Workaround: User must first create a folder manually and share it with the bot, then bot can create subfolders inside it

来源与署名

来源:m1heng/clawdbot-feishu位于skills/feishu-drive提交b07885b

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架