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
| Name | Required | Description | Default |
|---|---|---|---|
| shape_name | Yes | Name of the shape to retrieved from the shape library of the current diagram. | |
| x | No | X-axis position of the vertex cell of the shape | |
| y | No | Y-axis position of the vertex cell of the shape | |
| width | No | Width of the vertex cell of the shape | |
| height | No | Height of the vertex cell of the shape | |
| text | No | Text content placed inside of the vertex cell of the shape | |
| style | No | Semi-colon separated list of Draw.io visual styles, in the form of `key=value`. Example: `whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;` |