Feishu Wiki

m1heng/clawdbot-feishu/skills/feishu-wiki

作者 m1hengb07885b756ac無授權條款4.2K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫6 個月前更新

Feishu knowledge base navigation. Activate when user mentions knowledge base, wiki, or wiki links.

AI 產生的概覽

用於瀏覽飛書知識庫:列出空間與節點、建立、移動和重新命名頁面,並交由 feishu_doc 處理內容。

功能
提供單一 feishu_wiki 工具進行知識庫操作:列出可存取的 wiki 空間、列出節點(可指定父節點)、取得節點詳細資料、建立多種物件類型的節點、在同一或不同空間內移動節點,以及重新命名節點。它也說明 wiki 與文件的協作流程,也就是把節點的 obj_token 傳給 feishu_doc 來讀取或寫入底層文件。內容還包括從 wiki 連結擷取 token 以及設定與權限說明。
適用情境
當使用者提到知識庫、wiki 或 wiki 連結,需要瀏覽、尋找、建立、調整或重新命名 wiki 頁面時使用。編輯 wiki 頁面內容時也適用,但需要搭配 feishu_doc 工具。
執行需求
需要啟用飛書頻道的 wiki 工具,並依賴已啟用的 feishu_doc 工具;需要具備 wiki:wiki 或 wiki:wiki:readonly 權限的飛書 API 存取。不含指令碼,僅為說明文件。

Feishu Wiki Tool

Single tool feishu_wiki for knowledge base operations.

Token Extraction

From URL https://xxx.feishu.cn/wiki/ABC123def → token = ABC123def

Actions

List Knowledge Spaces

json
{ "action": "spaces" }

Returns all accessible wiki spaces.

List Nodes

json
{ "action": "nodes", "space_id": "7xxx" }

With parent:

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.

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

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" }

Rename Node

json
{ "action": "rename", "space_id": "7xxx", "node_token": "wikcnXXX", "title": "New Title" }

Wiki-Doc Workflow

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": "..." }

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.

Permissions

Required: wiki:wiki or wiki:wiki:readonly

來源與署名

來源:m1heng/clawdbot-feishu位於skills/feishu-wiki提交b07885b

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架