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 从公开仓库中收录这些内容。

举报或申请下架