Back to Openclaw

Feishu Permission Tool

extensions/feishu/skills/feishu-perm/SKILL.md

2026.5.52.3 KB
Original Source

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": "[email protected]",
  "perm": "edit"
}

Remove Collaborator

json
{
  "action": "remove",
  "token": "ABC123",
  "type": "docx",
  "member_type": "email",
  "member_id": "[email protected]"
}

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": "[email protected]",
  "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