feishu-perm
m1heng/clawdbot-feishu/skills/feishu-perm/SKILL.md
Feishu permission management for documents and files. Activate when user mentions sharing, permissions, collaborators.
Skill4.2k starsChanged 8 months ago
What's in it
- Feishu Permission Tool
- Actions
- List Collaborators
- Add Collaborator
- Remove Collaborator
- Token Types
- Member Types
- Permission Levels
- Examples
- Configuration
- Permissions
---
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
```json
{ "action": "list", "token": "ABC123", "type": "docx" }
```
Returns: members with member_type, member_id, perm, name.
### Add Collaborator
```json
{ "action": "add", "token": "ABC123", "type": "docx", "member_type": "email", "member_id": "user@example.com", "perm": "edit" }
```
### Remove Collaborator
```json
{ "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:
```json
{ "action": "add", "token": "doxcnXXX", "type": "docx", "member_type": "email", "member_id": "alice@company.com", "perm": "edit" }
```
Share folder with group:
```json
{ "action": "add", "token": "fldcnXXX", "type": "folder", "member_type": "openchat", "member_id": "oc_xxx", "perm": "view" }
```
## Configuration
```yaml
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`
More agent context in m1heng/clawdbot-feishu
12 other files this repository gives its agents.
CLAUDE.md
Skill
- agent-browser.agents/skills/agent-browser/SKILL.md
- feishu-e2e-test.claude/skills/feishu-e2e-test/SKILL.md
- release.claude/skills/release/SKILL.md
- feishu-chatskills/feishu-chat/SKILL.md
- feishu-docskills/feishu-doc/SKILL.md
- feishu-driveskills/feishu-drive/SKILL.md
- feishu-messageskills/feishu-message/SKILL.md
- feishu-reactionskills/feishu-reaction/SKILL.md
- feishu-taskskills/feishu-task/SKILL.md
- feishu-urgentskills/feishu-urgent/SKILL.md
- feishu-wikiskills/feishu-wiki/SKILL.md
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

