Skip to main content
Glama

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:

  1. If a sessionId is specified, clear all elements in that session.

  2. If no sessionId is specified, create a new session.

  3. 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
NameRequiredDescriptionDefault
sessionIdNoSession ID. If not specified, a new session is automatically generated. If an existing ID is specified, that session is cleared.
viewBackgroundColorNoCanvas background color (default: #ffffff)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Scofieldfree/excalidraw-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server