{"kind":"Skill","metadata":{"namespace":"community","name":"feishu-drive","version":"0.1.0"},"spec":{"description":"|","files":{"SKILL.md":"---\nname: feishu-drive\ndescription: |\n  Feishu cloud storage file management. Activate when user mentions cloud space, folders, drive.\n---\n\n# Feishu Drive Tool\n\nSingle tool `feishu_drive` for cloud storage operations.\n\n## Token Extraction\n\nFrom URL `https://xxx.feishu.cn/drive/folder/ABC123` → `folder_token` = `ABC123`\n\n## Actions\n\n### List Folder Contents\n\n```json\n{ \"action\": \"list\" }\n```\n\nRoot directory (no folder_token).\n\n```json\n{ \"action\": \"list\", \"folder_token\": \"fldcnXXX\" }\n```\n\nReturns: files with token, name, type, url, timestamps.\n\n### Get File Info\n\n```json\n{ \"action\": \"info\", \"file_token\": \"ABC123\", \"type\": \"docx\" }\n```\n\nSearches for the file in the root directory. Note: file must be in root or use `list` to browse folders first.\n\n`type`: `doc`, `docx`, `sheet`, `bitable`, `folder`, `file`, `mindnote`, `shortcut`\n\n### Create Folder\n\n```json\n{ \"action\": \"create_folder\", \"name\": \"New Folder\" }\n```\n\nIn parent folder:\n\n```json\n{ \"action\": \"create_folder\", \"name\": \"New Folder\", \"folder_token\": \"fldcnXXX\" }\n```\n\n### Move File\n\n```json\n{ \"action\": \"move\", \"file_token\": \"ABC123\", \"type\": \"docx\", \"folder_token\": \"fldcnXXX\" }\n```\n\n### Delete File\n\n```json\n{ \"action\": \"delete\", \"file_token\": \"ABC123\", \"type\": \"docx\" }\n```\n\n## File Types\n\n| Type       | Description             |\n| ---------- | ----------------------- |\n| `doc`      | Old format document     |\n| `docx`     | New format document     |\n| `sheet`    | Spreadsheet             |\n| `bitable`  | Multi-dimensional table |\n| `folder`   | Folder                  |\n| `file`     | Uploaded file           |\n| `mindnote` | Mind map                |\n| `shortcut` | Shortcut                |\n\n## Configuration\n\n```yaml\nchannels:\n  feishu:\n    tools:\n      drive: true # default: true\n```\n\n## Permissions\n\n- `drive:drive` - Full access (create, move, delete)\n- `drive:drive:readonly` - Read only (list, info)\n\n## Known Limitations\n\n- **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:\n  - `create_folder` without `folder_token` will fail (400 error)\n  - Bot can only access files/folders that have been **shared with it**\n  - **Workaround**: User must first create a folder manually and share it with the bot, then bot can create subfolders inside it\n"},"import":{"commit_sha":"424c6d0a5f4665b803ad6768d08b0be7659deaf4","imported_at":"2026-05-18T20:13:36Z","license_text":"MIT License\n\nCopyright (c) 2025 Peter Steinberger\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","owner":"openclaw","repo":"openclaw/openclaw","source_url":"https://github.com/openclaw/openclaw/tree/424c6d0a5f4665b803ad6768d08b0be7659deaf4/extensions/feishu/skills/feishu-drive"}},"content_hash":[232,211,133,100,41,87,220,205,150,207,44,115,244,219,61,53,207,166,72,122,136,208,240,114,171,96,171,165,122,125,213,79],"trust_level":"unsigned","yanked":false}
