Skip to main content
Glama

add-rectangle

Add a rectangle shape to Draw.io diagrams by specifying position, size, text, and visual style parameters for diagram creation and modification.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNoX-axis position of the Rectangle vertex cell
yNoY-axis position of the Rectangle vertex cell
widthNoWidth of the Rectangle vertex cell
heightNoHeight of the Rectangle vertex cell
textNoText content placed inside of the Rectangle vertex cellNew Cell
styleNoSemi-colon separated list of Draw.io visual styles, in the form of `key=value`. Example: `whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;`whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;

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