create_diagram
Create or reset Excalidraw diagrams for visual collaboration, enabling AI agents to start new projects or clear existing sessions.
Instructions
Create a new diagram or clear an existing session.
This action will:
If a sessionId is specified, clear all elements in that session.
If no sessionId is specified, create a new session.
Reset the application state.
Usage scenarios: • Starting a new project (no sessionId specified) • Clearing an existing diagram (sessionId specified) • Creating multiple independent diagrams (specify different sessionIds each time)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | No | Session ID. If not specified, a new session is automatically generated. If an existing ID is specified, that session is cleared. | |
| viewBackgroundColor | No | Canvas background color (default: #ffffff) |