$npx -y skills add SafeAI-Lab-X/ClawKeeper --skill feishu-driveFeishu cloud storage file management. Activate when user mentions cloud space, folders, drive.
| 1 | # Feishu Drive Tool |
| 2 | |
| 3 | Single tool `feishu_drive` for cloud storage operations. |
| 4 | |
| 5 | ## Token Extraction |
| 6 | |
| 7 | From URL `https://xxx.feishu.cn/drive/folder/ABC123` → `folder_token` = `ABC123` |
| 8 | |
| 9 | ## Actions |
| 10 | |
| 11 | ### List Folder Contents |
| 12 | |
| 13 | ```json |
| 14 | { "action": "list" } |
| 15 | ``` |
| 16 | |
| 17 | Root directory (no folder_token). |
| 18 | |
| 19 | ```json |
| 20 | { "action": "list", "folder_token": "fldcnXXX" } |
| 21 | ``` |
| 22 | |
| 23 | Returns: files with token, name, type, url, timestamps. |
| 24 | |
| 25 | ### Get File Info |
| 26 | |
| 27 | ```json |
| 28 | { "action": "info", "file_token": "ABC123", "type": "docx" } |
| 29 | ``` |
| 30 | |
| 31 | Searches for the file in the root directory. Note: file must be in root or use `list` to browse folders first. |
| 32 | |
| 33 | `type`: `doc`, `docx`, `sheet`, `bitable`, `folder`, `file`, `mindnote`, `shortcut` |
| 34 | |
| 35 | ### Create Folder |
| 36 | |
| 37 | ```json |
| 38 | { "action": "create_folder", "name": "New Folder" } |
| 39 | ``` |
| 40 | |
| 41 | In parent folder: |
| 42 | |
| 43 | ```json |
| 44 | { "action": "create_folder", "name": "New Folder", "folder_token": "fldcnXXX" } |
| 45 | ``` |
| 46 | |
| 47 | ### Move File |
| 48 | |
| 49 | ```json |
| 50 | { "action": "move", "file_token": "ABC123", "type": "docx", "folder_token": "fldcnXXX" } |
| 51 | ``` |
| 52 | |
| 53 | ### Delete File |
| 54 | |
| 55 | ```json |
| 56 | { "action": "delete", "file_token": "ABC123", "type": "docx" } |
| 57 | ``` |
| 58 | |
| 59 | ## File Types |
| 60 | |
| 61 | | Type | Description | |
| 62 | | ---------- | ----------------------- | |
| 63 | | `doc` | Old format document | |
| 64 | | `docx` | New format document | |
| 65 | | `sheet` | Spreadsheet | |
| 66 | | `bitable` | Multi-dimensional table | |
| 67 | | `folder` | Folder | |
| 68 | | `file` | Uploaded file | |
| 69 | | `mindnote` | Mind map | |
| 70 | | `shortcut` | Shortcut | |
| 71 | |
| 72 | ## Configuration |
| 73 | |
| 74 | ```yaml |
| 75 | channels: |
| 76 | feishu: |
| 77 | tools: |
| 78 | drive: true # default: true |
| 79 | ``` |
| 80 | |
| 81 | ## Permissions |
| 82 | |
| 83 | - `drive:drive` - Full access (create, move, delete) |
| 84 | - `drive:drive:readonly` - Read only (list, info) |
| 85 | |
| 86 | ## Known Limitations |
| 87 | |
| 88 | - **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: |
| 89 | - `create_folder` without `folder_token` will fail (400 error) |
| 90 | - Bot can only access files/folders that have been **shared with it** |
| 91 | - **Workaround**: User must first create a folder manually and share it with the bot, then bot can create subfolders inside it |