Skip to content

知识库工具

本文档详细介绍知识库(Wiki)相关的工具使用方法。

工具列表

工具功能
feishu_wiki_space管理知识空间
feishu_wiki_space_node管理知识库节点
feishu_search_doc_wiki搜索文档和知识库

知识库结构

知识空间 (Space)
  └── 节点 (Node)
        ├── 文档 (doc)
        ├── 多维表格 (bitable)
        └── 电子表格 (sheet)

使用示例

列出知识空间

json
{
  "action": "list"
}

获取知识空间详情

json
{
  "action": "get",
  "space_id": "space_xxx"
}

列出知识库节点

json
{
  "action": "list",
  "space_id": "space_xxx"
}

搜索文档和知识库

json
{
  "action": "search",
  "query": "项目文档",
  "filter": {
    "doc_types": ["DOC", "WIKI"]
  }
}

创建知识库节点

json
{
  "action": "create",
  "space_id": "space_xxx",
  "parent_node_token": "parent_node",
  "obj_type": "doc",
  "title": "新文档"
}

获取 ID

space_id

从知识空间设置页面 URL 获取: https://xxx.feishu.cn/wiki/settings/74480000000000093007448000000000009300

node_token

从知识库文档页面 URL 获取: https://xxx.feishu.cn/wiki/wikcnXXXXwikcnXXXX

Released under the MIT License.