AgentSkillsCN

Feishu Perm

飞书文档与文件的权限管理。当用户提到共享、权限或协作者时,可启用此功能。飞书文档与文件的权限管理。当用户提到共享、权限或协作者时,可启用此功能。

SKILL.md
--- frontmatter
category: Business
id: feishu-perm
name: Feishu Perm
description: Feishu permission management for documents and files. Activate when user mentions sharing, permissions, collaborators.
  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

TypeDescription
docOld format document
docxNew format document
sheetSpreadsheet
bitableMulti-dimensional table
folderFolder
fileUploaded file
wikiWiki node
mindnoteMind map

Member Types

TypeDescription
emailEmail address
openidUser open_id
useridUser user_id
unionidUser union_id
openchatGroup chat open_id
opendepartmentidDepartment open_id

Permission Levels

PermDescription
viewView only
editCan edit
full_accessFull 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