默认首页 — 人用优先的绘制工具 + 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 | — | 获取当前画布上所有图形列表(只读) |