Skip to main content
Glama

update_element

Modify existing diagram elements by adjusting position, size, colors, text, and other visual properties in Excalidraw diagrams.

Instructions

Update attributes of an existing element.

Updatable attributes:

  • x, y: Position coordinates

  • width, height: Dimensions

  • strokeColor: Stroke color

  • backgroundColor: Background color

  • fillStyle: Fill style

  • strokeWidth: Stroke width

  • roughness: Roughness

  • opacity: Opacity

  • text: Text content (only for text type)

Multi-session support: Specify sessionId to target a specific session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdNoSession ID. If not provided, uses default session.
idYesElement ID to update
updatesYesAttributes to update

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