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 從公開儲存庫中收錄這些內容。

檢舉或申請下架