create_shape
Add shapes such as rectangles, circles, and arrows to a diagram canvas, specifying position, size, text, fill, stroke, and other styling options.
Instructions
Create a shape on the current canvas with position, size, text, and styling
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X position in points | |
| y | Yes | Y position in points | |
| name | No | Graphic name for identification | |
| text | No | Text label inside the shape | |
| width | Yes | Width in points | |
| height | Yes | Height in points | |
| shadow | No | Draw shadow | |
| font_name | No | Font name, e.g. "Helvetica-Bold" | |
| text_size | No | Font size in points | |
| fill_color | No | RGBA color with components from 0 to 1 | |
| shape_type | Yes | Shape type: "Rectangle", "RoundedRectangle", "Circle", "Diamond", "HorizontalCylinder", "VerticalCylinder", "RightTriangle", "Star", "Hexagon", "Octagon", "Cloud", "Arrow", "DoubleArrow", etc. | |
| text_color | No | RGBA color with components from 0 to 1 | |
| layer_index | No | Target layer index | |
| stroke_color | No | RGBA color with components from 0 to 1 | |
| corner_radius | No | Corner radius (for RoundedRectangle) | |
| stroke_thickness | No | Stroke width in points |