Wiki Tools
This document details the Wiki (knowledge base) tools.
Tool List
| Tool | Function |
|---|---|
| feishu_wiki_space | Manage knowledge spaces |
| feishu_wiki_space_node | Manage wiki nodes |
| feishu_search_doc_wiki | Search 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/7448000000000009300 → 7448000000000009300
node_token
Get from wiki document page URL: https://xxx.feishu.cn/wiki/wikcnXXXX → wikcnXXXX