feishu-wiki
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseFeishu Wiki Tool
Feishu Wiki 工具
Single tool for knowledge base operations.
feishu_wiki用于知识库操作的单一工具。
feishu_wikiToken Extraction
Token 提取
From URL → =
https://xxx.feishu.cn/wiki/ABC123deftokenABC123def从URL 中提取 → =
https://xxx.feishu.cn/wiki/ABC123deftokenABC123defActions
操作
List Knowledge Spaces
列出知识空间
json
{ "action": "spaces" }Returns all accessible wiki spaces.
json
{ "action": "spaces" }返回所有可访问的wiki空间。
List Nodes
列出节点
json
{ "action": "nodes", "space_id": "7xxx" }With parent:
json
{ "action": "nodes", "space_id": "7xxx", "parent_node_token": "wikcnXXX" }json
{ "action": "nodes", "space_id": "7xxx" }带父节点的情况:
json
{ "action": "nodes", "space_id": "7xxx", "parent_node_token": "wikcnXXX" }Get Node Details
获取节点详情
json
{ "action": "get", "token": "ABC123def" }Returns: , , , etc. Use with to read/write the document.
node_tokenobj_tokenobj_typeobj_tokenfeishu_docjson
{ "action": "get", "token": "ABC123def" }返回:, , 等。使用配合来读写文档。
node_tokenobj_tokenobj_typeobj_tokenfeishu_docCreate Node
创建节点
json
{ "action": "create", "space_id": "7xxx", "title": "New Page" }With type and parent:
json
{ "action": "create", "space_id": "7xxx", "title": "Sheet", "obj_type": "sheet", "parent_node_token": "wikcnXXX" }obj_typedocxsheetbitablemindnotefiledocslidesjson
{ "action": "create", "space_id": "7xxx", "title": "New Page" }带类型和父节点的情况:
json
{ "action": "create", "space_id": "7xxx", "title": "Sheet", "obj_type": "sheet", "parent_node_token": "wikcnXXX" }obj_typedocxsheetbitablemindnotefiledocslidesMove Node
移动节点
json
{ "action": "move", "space_id": "7xxx", "node_token": "wikcnXXX" }To different location:
json
{ "action": "move", "space_id": "7xxx", "node_token": "wikcnXXX", "target_space_id": "7yyy", "target_parent_token": "wikcnYYY" }json
{ "action": "move", "space_id": "7xxx", "node_token": "wikcnXXX" }移动到不同位置:
json
{ "action": "move", "space_id": "7xxx", "node_token": "wikcnXXX", "target_space_id": "7yyy", "target_parent_token": "wikcnYYY" }Rename Node
重命名节点
json
{ "action": "rename", "space_id": "7xxx", "node_token": "wikcnXXX", "title": "New Title" }json
{ "action": "rename", "space_id": "7xxx", "node_token": "wikcnXXX", "title": "New Title" }Wiki-Doc Workflow
Wiki-文档 工作流
To edit a wiki page:
- Get node: → returns
{ "action": "get", "token": "wiki_token" }obj_token - Read doc:
feishu_doc { "action": "read", "doc_token": "obj_token" } - Write doc:
feishu_doc { "action": "write", "doc_token": "obj_token", "content": "..." }
要编辑wiki页面:
- 获取节点:→ 返回
{ "action": "get", "token": "wiki_token" }obj_token - 读取文档:
feishu_doc { "action": "read", "doc_token": "obj_token" } - 写入文档:
feishu_doc { "action": "write", "doc_token": "obj_token", "content": "..." }
Configuration
配置
yaml
channels:
feishu:
tools:
wiki: true # default: true
doc: true # required - wiki content uses feishu_docDependency: This tool requires to be enabled. Wiki pages are documents - use to navigate, then to read/edit content.
feishu_docfeishu_wikifeishu_docyaml
channels:
feishu:
tools:
wiki: true # 默认值: true
doc: true # 必需项 - wiki内容依赖feishu_doc依赖: 该工具需要启用。Wiki页面属于文档范畴 - 使用进行导航,然后使用进行读写内容。
feishu_docfeishu_wikifeishu_docPermissions
权限
Required: or
wiki:wikiwiki:wiki:readonly所需权限: 或
wiki:wikiwiki:wiki:readonly