Create Rectangle
illustrator_create_rectangleAdd a rectangle (optionally with rounded corners) to the active Illustrator document by specifying its position, dimensions, and styling options.
Instructions
Draw a rectangle (optionally rounded) on the active document.
Coordinates/sizes are in points, from the top-left of the active artboard, Y down. Args: x, y (top-left), width, height, optional corner_radius, fill, stroke, strokeWidth, name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Left edge, from artboard left. | |
| y | Yes | Top edge, from artboard top (Y increases downward). | |
| fill | No | Fill color. Omit to keep default. | |
| name | No | Optional name for the object (useful for later selection). | |
| width | Yes | Width in points. | |
| height | Yes | Height in points. | |
| stroke | No | Stroke (outline) color. Omit for no change. | |
| strokeWidth | No | Stroke width in points. | |
| corner_radius | No | Corner radius in points (rounded rectangle). |