Skip to main content
Glama

add-cell-of-shape

Add a shape to a Draw.io diagram by specifying its name, position, dimensions, text content, and visual style. This tool enables AI agents to programmatically insert diagram elements for creating architectural diagrams, flowcharts, and visualizations.

Instructions

This tool allows you to add new vertex cell (object) on the current page of a Draw.io diagram by its shape name. It accepts multiple optional input parameter.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
shape_nameYesName of the shape to retrieved from the shape library of the current diagram.
xNoX-axis position of the vertex cell of the shape
yNoY-axis position of the vertex cell of the shape
widthNoWidth of the vertex cell of the shape
heightNoHeight of the vertex cell of the shape
textNoText content placed inside of the vertex cell of the shape
styleNoSemi-colon separated list of Draw.io visual styles, in the form of `key=value`. Example: `whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;`

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/lgazo/drawio-mcp-server'

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