UNPKG

feishu-mcp

Version:

Model Context Protocol server for Feishu integration

33 lines 1.99 kB
{ "name": "get_feishu_folder_files", "description": "Retrieves a list of files and subfolders in a specified folder or wiki space node. Supports two modes: (1) Feishu Drive folder mode: use folderToken to get files in a Feishu Drive folder. (2) Wiki space node mode: use wikiContext with spaceId (and optional parentNodeToken) to get documents under a wiki space node. If parentNodeToken is not provided, retrieves nodes from the root of the wiki space. Only one mode can be used at a time - provide either folderToken OR wikiContext.", "arguments": { "type": "object", "properties": { "folderToken": { "type": "string", "description": "Folder token (optional, for Feishu Drive folder mode). The unique identifier for a folder in Feishu Drive. Format is an alphanumeric string like \"FWK2fMleClICfodlHHWc4Mygnhb\"." }, "wikiContext": { "type": "object", "properties": { "spaceId": { "type": "string", "description": "Space ID. Required when using wikiContext mode. The unique identifier for a wiki space in Feishu. Can be obtained from get_feishu_root_folder_info (wiki_spaces array or my_library.space_id). Format is typically like \"74812***88644\"." }, "parentNodeToken": { "type": "string", "description": "Parent node token (optional). The token of the parent node in a wiki space. If not provided, retrieves nodes from the root of the wiki space. Format is typically like \"PdDWwIHD6****MhcIOY7npg\"." } }, "required": [ "spaceId" ], "additionalProperties": false, "description": "Wiki space node context object (optional). Provide this instead of folderToken to operate in wiki space mode. spaceId is required; parentNodeToken is optional (omit to target the wiki root)." } }, "additionalProperties": false, "$schema": "http://json-schema.org/draft-07/schema#" } }