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
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X-axis position of the Rectangle vertex cell | |
| y | No | Y-axis position of the Rectangle vertex cell | |
| width | No | Width of the Rectangle vertex cell | |
| height | No | Height of the Rectangle vertex cell | |
| text | No | Text content placed inside of the Rectangle vertex cell | New Cell |
| 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;` | whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf; |