Skip to content

Wiki Tools

This document details the Wiki (knowledge base) tools.

Tool List

ToolFunction
feishu_wiki_spaceManage knowledge spaces
feishu_wiki_space_nodeManage wiki nodes
feishu_search_doc_wikiSearch documents and wiki

Knowledge Base Structure

Knowledge Space (Space)
  └── Node (Node)
        ├── Document (doc)
        ├── Bitable (bitable)
        └── Spreadsheet (sheet)

Usage Examples

List Knowledge Spaces

json
{
  "action": "list"
}

Get Knowledge Space Details

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

List Wiki Nodes

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

Search Documents and Wiki

json
{
  "action": "search",
  "query": "project document",
  "filter": {
    "doc_types": ["DOC", "WIKI"]
  }
}

Create Wiki Node

json
{
  "action": "create",
  "space_id": "space_xxx",
  "parent_node_token": "parent_node",
  "obj_type": "doc",
  "title": "New Document"
}

Getting IDs

space_id

Get from knowledge space settings page URL: https://xxx.feishu.cn/wiki/settings/74480000000000093007448000000000009300

node_token

Get from wiki document page URL: https://xxx.feishu.cn/wiki/wikcnXXXXwikcnXXXX

Released under the MIT License.