Canvas 画板页面设计

默认首页 — 人用优先的绘制工具 + WebMCP 暴露给 Agent

画板页面
◐ Nexus Demo
画板
待办
⌘ + \ 调试面板
✏️
T
🗑
canvas 画布区域(白色背景,圆角边框)

交互设计

WebMCP 工具设计(暴露给 Agent)

工具名 参数 说明
drawFreehand points, color?, width? 画自由线条(点坐标数组)
drawLine x1, y1, x2, y2, color?, width? 画直线
drawRect x, y, width, height, color?, fill? 画矩形
drawCircle cx, cy, radius, color?, fill? 画圆形
drawText x, y, text, color?, fontSize? 绘制文字
undo 撤销最后一个图形
clearCanvas 清空画布
getCanvasState 获取当前画布上所有图形列表(只读)