feishu-wiki

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Feishu Wiki Tool

Feishu Wiki 工具

Single tool
feishu_wiki
for knowledge base operations.
用于知识库操作的单一工具
feishu_wiki

Token Extraction

Token 提取

From URL
https://xxx.feishu.cn/wiki/ABC123def
token
=
ABC123def
从URL
https://xxx.feishu.cn/wiki/ABC123def
中提取 →
token
=
ABC123def

Actions

操作

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:
node_token
,
obj_token
,
obj_type
, etc. Use
obj_token
with
feishu_doc
to read/write the document.
json
{ "action": "get", "token": "ABC123def" }
返回:
node_token
,
obj_token
,
obj_type
等。使用
obj_token
配合
feishu_doc
来读写文档。

Create 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_type
:
docx
(default),
sheet
,
bitable
,
mindnote
,
file
,
doc
,
slides
json
{ "action": "create", "space_id": "7xxx", "title": "New Page" }
带类型和父节点的情况:
json
{ "action": "create", "space_id": "7xxx", "title": "Sheet", "obj_type": "sheet", "parent_node_token": "wikcnXXX" }
obj_type
:
docx
(默认),
sheet
,
bitable
,
mindnote
,
file
,
doc
,
slides

Move 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:
  1. Get node:
    { "action": "get", "token": "wiki_token" }
    → returns
    obj_token
  2. Read doc:
    feishu_doc { "action": "read", "doc_token": "obj_token" }
  3. Write doc:
    feishu_doc { "action": "write", "doc_token": "obj_token", "content": "..." }
要编辑wiki页面:
  1. 获取节点:
    { "action": "get", "token": "wiki_token" }
    → 返回
    obj_token
  2. 读取文档:
    feishu_doc { "action": "read", "doc_token": "obj_token" }
  3. 写入文档:
    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_doc
Dependency: This tool requires
feishu_doc
to be enabled. Wiki pages are documents - use
feishu_wiki
to navigate, then
feishu_doc
to read/edit content.
yaml
channels:
  feishu:
    tools:
      wiki: true  # 默认值: true
      doc: true   # 必需项 - wiki内容依赖feishu_doc
依赖: 该工具需要启用
feishu_doc
。Wiki页面属于文档范畴 - 使用
feishu_wiki
进行导航,然后使用
feishu_doc
进行读写内容。

Permissions

权限

Required:
wiki:wiki
or
wiki:wiki:readonly
所需权限:
wiki:wiki
wiki:wiki:readonly