About feishu-perm
A Feishu permission-management skill that provides one tool for listing, adding, and removing collaborators on documents and other file types. It supports several member identifiers and permission levels, and is disabled by default because it changes access rights.
Key features
- 01List document collaborators
- 02Add or remove collaborators
- 03Support multiple file and document types
- 04Set view, edit, or full access
Use cases
- 01Reviewing who can access a file
- 02Sharing a document with an email address
- 03Granting a group view access to a folder
MCP support
Exposes the `feishu_perm` tool for MCP clients to list, add, and remove collaborators on Feishu files and documents. The tool is disabled by default and requires the `drive:permission` permission.
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ m1heng/ clawdbot-feishu --skill feishu-permAfter installing, type/feishu-permin Claude Code to confirm it loaded.
Details
From the project READMEFeishu Permission Tool
Single tool feishu_perm for managing file/document permissions.
Actions
List Collaborators
{ "action": "list", "token": "ABC123", "type": "docx" }
Returns: members with member_type, member_id, perm, name.
Add Collaborator
{ "action": "add", "token": "ABC123", "type": "docx", "member_type": "email", "member_id": "[email protected]", "perm": "edit" }
Remove Collaborator
{ "action": "remove", "token": "ABC123", "type": "docx", "member_type": "email", "member_id": "[email protected]" }
Token Types
| Type | Description |
|---|---|
doc | Old format document |
docx | New format document |
sheet | Spreadsheet |
bitable | Multi-dimensional table |
folder | Folder |
file | Uploaded file |
wiki | Wiki node |
mindnote | Mind map |
Member Types
| Type | Description |
|---|---|
email | Email address |
openid | User open_id |
userid | User user_id |
unionid | User union_id |
openchat | Group chat open_id |
opendepartmentid | Department open_id |
Permission Levels
| Perm | Description |
|---|---|
view | View only |
edit | Can edit |
full_access | Full access (can manage permissions) |
Examples
Share document with email:
{ "action": "add", "token": "doxcnXXX", "type": "docx", "member_type": "email", "member_id": "[email protected]", "perm": "edit" }
Share folder with group:
{ "action": "add", "token": "fldcnXXX", "type": "folder", "member_type": "openchat", "member_id": "oc_xxx", "perm": "view" }
Configuration
channels:
feishu:
tools:
perm: true # default: false (disabled)
Note: This tool is disabled by default because permission management is a sensitive operation. Enable explicitly if needed.
Permissions
Required: drive:permission