闲社服务运行正常AI智能体自动化平台
e

Excalidraw画布

技能标识:excalidraw-canvas

Create Excalidraw diagrams and render them as PNG images. Use whenever you need to draw, explain complex workflows, visualize UIs/wireframes, or diagram anything.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

Excalidraw画布

Excalidraw 画布

通过托管的 API 将图表或任何绘图渲染为 PNG 格式。务必仔细检查元素或箭头的坐标。

渲染

bash
RESULT=$(curl -s -m 60 -X POST https://excalidraw-mcp.up.railway.app/api/render \
-H Content-Type: application/json \
-H Accept: application/json \
-d {elements: [...]})

保存 PNG

echo $RESULT | python3 -c import json,sys,base64; d=json.load(sys.stdin); open(/tmp/diagram.png,wb).write(base64.b64decode(d[png]))

获取编辑链接

echo $RESULT | python3 -c import json,sys; print(json.load(sys.stdin)[editUrl])

响应:{success: true, png: , editUrl: https://..../canvas/render-xxxxx}

始终同时返回 PNG 图像和一个编辑链接,所有者可以在完整的 Excalidraw 编辑器中修改图表。

元素类型

所有可用类型:rectangle(矩形)、ellipse(椭圆)、diamond(菱形)、text(文本)、arrow(箭头)、line(线条)、freedraw(自由绘制)

形状(矩形、椭圆、菱形)

json {type:rectangle,x:100,y:100,width:200,height:80,bg:#a5d8ff,label:我的框} {type:ellipse,x:100,y:100,width:150,height:100,bg:#b2f2bb,label:节点} {type:diamond,x:100,y:100,width:140,height:100,bg:#ffec99,label:决策?}
  • - x、y — 位置
  • width、height — 尺寸
  • bg — 任意十六进制填充颜色
  • stroke — 边框颜色(默认 #1e1e1e)
  • label — 在形状内居中的文本

文本

json {type:text,x:100,y:50,text:标题,fontSize:28}

箭头与线条

json {type:arrow,x:300,y:140,points:[[0,0],[150,0]]} {type:line,x:0,y:200,points:[[0,0],[800,0]]}

点坐标相对于 x、y。水平:[[0,0],[150,0]],垂直:[[0,0],[0,100]],折线:[[0,0],[0,50],[100,50]]。

自由绘制

json {type:freedraw,x:100,y:100,points:[[0,0],[5,3],[10,8],[20,15]]}

手绘路径 — 相对于位置的 [x,y] 点数组。

完整示例

bash
RESULT=$(curl -s -m 60 -X POST https://excalidraw-mcp.up.railway.app/api/render \
-H Content-Type: application/json \
-H Accept: application/json \
-d {elements: [
{type:text,x:250,y:20,text:系统设计,fontSize:28},
{type:rectangle,x:50,y:80,width:180,height:70,bg:#a5d8ff,label:前端},
{type:rectangle,x:300,y:80,width:180,height:70,bg:#b2f2bb,label:API},
{type:rectangle,x:550,y:80,width:180,height:70,bg:#ffec99,label:数据库},
{type:arrow,x:230,y:115,points:[[0,0],[70,0]]},
{type:arrow,x:480,y:115,points:[[0,0],[70,0]]}
]})

echo $RESULT | python3 -c import json,sys,base64; d=json.load(sys.stdin); open(/tmp/diagram.png,wb).write(base64.b64decode(d[png])); print(d[editUrl])

发送给用户

message(action=send, filePath=/tmp/diagram.png, caption=✏️ 编辑:{editUrl})

始终包含编辑链接,以便用户可以调整图表。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 excalidraw-canvas-1776280425 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 excalidraw-canvas-1776280425 技能

通过命令行安装

skillhub install excalidraw-canvas-1776280425

下载

⬇ 下载 excalidraw-canvas v1.0.0(免费)

文件大小: 1.94 KB | 发布时间: 2026-4-16 17:17

v1.0.0 最新 2026-4-16 17:17
Initial release of excalidraw-canvas:

- Create and render Excalidraw diagrams as PNG images via API.
- Supports basic shapes (rectangle, ellipse, diamond), text, arrows, lines, and freehand drawing.
- Returns both PNG image and an editable Excalidraw link with each render.
- Detailed documentation and usage examples included.
返回顶部