Single tool feishu_perm for managing file/document permissions.
json
{ "action": "list", "token": "ABC123", "type": "docx" }
Returns: members with member_type, member_id, perm, name.
json
{
"action": "add",
"token": "ABC123",
"type": "docx",
"member_type": "email",
"member_id": "user@example.com",
"perm": "edit"
}
json
{
"action": "remove",
"token": "ABC123",
"type": "docx",
"member_type": "email",
"member_id": "user@example.com"
}
TypeDescriptiondocOld format documentdocxNew format documentsheetSpreadsheetbitableMulti-dimensional tablefolderFolderfileUploaded filewikiWiki nodemindnoteMind map
TypeDescriptionemailEmail addressopenidUser open_iduseridUser user_idunionidUser union_idopenchatGroup chat open_idopendepartmentidDepartment open_id
PermDescriptionviewView onlyeditCan editfull_accessFull access (can manage permissions)
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"
}
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.
Required: drive:permission