lark-wiki
Installation
Summary
Manage Lark Wiki spaces, members, nodes, and document organization hierarchies.
- Create, list, and delete knowledge spaces; retrieve space and node information via token or URL
- Add, remove, and list space members with support for users, groups, and departments; enforces identity constraints (bot identity cannot manage department members)
- Create, move, copy, and delete wiki nodes; organize documents and shortcuts within space hierarchies
- Prioritizes user identity over bot identity for personal knowledge resources; includes safety checks for destructive operations like space deletion requiring explicit user confirmation
SKILL.md
wiki (v2)
CRITICAL — 开始前 MUST 先用 Read 工具读取 ../lark-shared/SKILL.md,其中包含认证、权限处理
成员管理硬限制:
- 如果目标是“部门”,先判断身份,再决定是否继续。
--as bot对应tenant_access_token。官方限制:这种身份下不能使用部门 ID (opendepartmentid) 添加知识空间成员。- 遇到“部门 + --as bot”时,禁止先调用
lark-cli wiki members create试错;直接说明该路径不可行。- 如果用户明确要求“以 bot 身份运行”,且目标是部门,必须停下说明 bot 路径无法完成,不要静默切到
--as user。
身份选择:优先使用 user 身份
知识空间和节点都是用户的个人资源,策略上应优先显式使用 --as user(CLI 的 --as 默认值为 auto,不带 --as 时常被解析成 bot,列出的是应用所属空间而非用户的)。仅当用户明确要求“应用 / bot 视角”时才用 --as bot(仍受上面的成员管理硬限制约束)。
快速决策
Explore more of GLSRM
