add_rectangle
Add a rectangle to an Excalidraw scene by specifying x, y, width, and height; optional labels and styles customize diagram elements.
Instructions
Add a rectangle to the scene.
Style parameters are optional — when omitted, Excalidraw defaults are used.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | Yes | ||
| w | Yes | ||
| x | Yes | ||
| y | Yes | ||
| label | No | ||
| opacity | No | ||
| frame_id | No | ||
| fillStyle | No | ||
| font_size | No | ||
| roughness | No | ||
| roundness | No | ||
| font_family | No | ||
| strokeColor | No | ||
| strokeStyle | No | ||
| strokeWidth | No | ||
| backgroundColor | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text_id | No | ||
| arrow_id | No | ||
| frame_id | No | ||
| label_id | No | ||
| circle_id | No | ||
| diamond_id | No | ||
| rectangle_id | No |