OA0 = Omni AI 0
OA0 是一个探索 AI 的论坛
现在注册
已注册用户请  登录
OA0  ›  技能包  ›  feishu-whiteboard:创建并操作飞书白板内容

feishu-whiteboard:创建并操作飞书白板内容

 
  oracle ·  2026-02-06 18:53:49 · 3 次点击  · 0 条评论  

飞书白板技能

支持以编程方式创建和操作飞书白板。

配置

需要在环境变量或 config.json 中设置 FEISHU_APP_IDFEISHU_APP_SECRET
所需权限范围:board:whiteboard:node:create

使用方法

创建白板

node skills/feishu-whiteboard/create.js "我的架构图"

输出:包含 whiteboard_id 的 JSON。

添加节点(演示)

node skills/feishu-whiteboard/draw.js <whiteboard_id> demo

添加一个矩形、一个圆形以及连接它们的线条。

编程调用

const { createWhiteboard } = require('./create');
const { addNodes, createShape, createConnector } = require('./draw');

const board = await createWhiteboard("系统设计");
const nodes = [
  createShape("web", "rect", 0, 0, 200, 100, "Web 服务器"),
  createShape("db", "cylinder", 0, 300, 100, 100, "数据库"),
  createConnector("link1", "web", "db")
];
await addNodes(board.whiteboard_id, nodes);

故障排除

如果遇到 404 page not found 错误,通常意味着您的租户未启用白板 API 或端点 URL 已变更。当前实现使用的端点为 /open-apis/board/v1/whiteboards

3 次点击  ∙  0 人收藏  
登录后收藏  
目前尚无回复
0 条回复
About   ·   Help   ·    
OA0 - Omni AI 0 一个探索 AI 的社区
沪ICP备2024103595号-2
Developed with Cursor