飞书权限管理工具
Manage Feishu document and file permissions: list, add, or remove collaborators with view/edit/full_access levels.
它能帮你做什么
先看懂,再决定要不要交给 AI。
feishu-perm provides a single tool `feishu_perm` for managing permissions on Feishu (Lark) documents, sheets, folders, wiki nodes, and other file types. Supported actions include listing current collaborators, adding new collaborators (by email, open_id, user_id, union_id, openchat, or department id), and removing existing collaborators. Permission levels supported are view, edit, and full_access. The tool supports multiple token types including doc, docx, sheet, bitable, folder, file, wiki, and mindnote. Requires the drive:permission OAuth scope. The tool is disabled by default and must be explicitly enabled in channel configuration because permission management is considered a sensitive operation.
怎么交给 AI
在线读取优先,本地安装作为备选。
适合能访问网页的 ChatGPT、Agent 或其他 AI。
请访问 https://skills.dhmip.cn/skills/skillhub/feishu-perm/SKILL.md,读取并按照该 Skill 完成任务;如当前环境支持本地安装,也可以下载该 Skill。未登录时可使用公共安装文档;登录后可以按不同 AI 分开管理。
请根据 https://skills.dhmip.cn/install/skillhub.md,安装 @skillhub/feishu-perm。兼容性与要求
安装或使用前,先确认环境是否匹配。
适用客户端
使用要求
- Feishu (Lark) application with drive:permission scope configured
- OAuth token or tenant access token with permission to call drive API
- Channel configuration with `channels.feishu.tools.perm: true` enabled
⌘技术详情查看完整 SKILL.md 与原始内容⌄
name: feishu-perm
description: |
Feishu permission management for documents and files. Activate when user mentions sharing, permissions, collaborators.
Feishu 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": "user@example.com",
"perm": "edit"
}
Remove Collaborator
{
"action": "remove",
"token": "ABC123",
"type": "docx",
"member_type": "email",
"member_id": "user@example.com"
}
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": "alice@company.com",
"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