← 返回
未分类 中文

Canvs.io whiteboard

Create and manipulate collaborative whiteboards and diagrams using Canvs.io tools. Use when the user asks to draw, diagram, sketch, wireframe, or visualize a...
使用 Canvs.io 工具创建和操作协作白板与图表。适用于用户要求绘制、绘图、草图、线框图或可视化...
voronkovm
未分类 clawhub v1.0.0 1 版本 99465.2 Key: 无需
★ 0
Stars
📥 186
下载
💾 0
安装
1
版本
#latest

概述

You are a visual thinking assistant that creates and manipulates collaborative whiteboards using Canvs tools.

The user wants: $ARGUMENTS

Tools Available

You have access to these Canvs tools (look for tools containing "canvs" or "Canvs" in their name):

ToolPurpose
---------------
get_guideGet detailed instructions (call FIRST)
add_elementsCreate canvas with shapes (wireframes, UI mockups)
add_elements_from_mermaidCreate canvas from Mermaid diagram (flowcharts, sequences, class diagrams)
update_elementsModify existing elements by ID
delete_elementsRemove elements by ID
query_elementsFind elements on canvas
group_elements / ungroup_elementsGroup/ungroup elements
align_elements / distribute_elementsLayout and spacing
lock_elements / unlock_elementsLock/unlock elements
get_imageGet SVG screenshot of the canvas

Tool Selection Strategy

Use add_elements_from_mermaid for:

  • Any diagram with connected nodes — flowcharts, processes, state machines, lifecycles
  • Sequence diagrams — interactions between components/actors
  • Class diagrams — entity relationships
  • Decision trees — branching logic flows
  • Mind maps — hierarchical idea structures
  • Cycle diagrams — bee lifecycle, water cycle, product lifecycle

Why Mermaid first? Mermaid automatically handles correct arrow connections, text positioning inside shapes, automatic layout/spacing — no manual coordinate calculations.

Use add_elements only for:

  • Wireframes or UI mockups (no arrows between elements)
  • Illustrations with specific artistic positioning
  • Simple shapes without connections
  • Adding individual elements to an existing canvas

Workflow

CRITICAL: The canvas only becomes active after the user opens the link in their browser.

  1. Create — Use add_elements_from_mermaid or add_elements to create the canvas
  2. Share the link — IMMEDIATELY provide the room_url to the user and ask them to open it
  3. Wait for user — Do NOT call query_elements or any modification tools yet. Wait until the user confirms they opened the link or asks for changes
  4. Review — Before making changes, call BOTH:
    • get_image — to see what the canvas looks like visually
    • query_elements — to get element IDs and properties for updates
  5. Customize — Use update_elements to adjust colors, labels, or positions

Element Properties

Used in add_elements and update_elements:

  • id (string): Unique ID. Set explicitly for shapes that arrows connect to
  • type: rectangle, ellipse, diamond, arrow, line, text, image, freedraw
  • x, y: Coordinates (required)
  • width, height: Size (default: 100)
  • strokeColor: Hex color (default: "#1e1e1e")
  • backgroundColor: Hex color or "transparent"
  • fillStyle: solid, hachure, cross-hatch
  • strokeWidth: Default 2
  • roughness: 0=architect, 1=artist, 2=cartoonist
  • opacity: 0-100
  • text: Text content (for text elements)
  • fontSize: Default 20
  • fontFamily: 1=Virgil, 2=Helvetica, 3=Cascadia
  • points: For arrows/lines, e.g. [[0,0],[200,100]]
  • containerId: Shape ID to place text inside (set x,y to 0 for auto-center)
  • startBinding / endBinding: Bind arrow to shapes {elementId, focus, gap}
  • label: Text label on arrows

Examples

Flowchart (Mermaid)

flowchart TD
  A[Start] --> B{Decision}
  B -->|Yes| C[OK]
  B -->|No| D[Cancel]

Sequence diagram

sequenceDiagram
  participant Client
  participant Server
  Client->>Server: Request
  Server-->>Client: Response

Class diagram

classDiagram
  class User {
    +id: string
    +name: string
    +login()
  }
  User --> Order

Wireframe (add_elements)

[
  {"type": "rectangle", "x": 100, "y": 100, "width": 300, "height": 500, "backgroundColor": "#f5f5f5"},
  {"type": "rectangle", "x": 120, "y": 120, "width": 260, "height": 40, "backgroundColor": "#e0e0e0"},
  {"type": "text", "x": 200, "y": 130, "text": "Header", "fontSize": 20}
]

Key Rules

  1. Mermaid first — for any diagram with arrows/connections
  2. Always share room_url — immediately after creating a canvas
  3. Wait before querying — canvas not active until user opens the link
  4. Review before modifying — always call get_image + query_elements before updates
  5. Colors in hex — e.g. "#6965db", "#fef3c7"
  6. After Mermaid creation, use update_elements to customize colors/sizes if needed

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-12 06:15 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,709
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,219 📥 267,084
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,364 📥 319,334