create_rectangle
Create a rectangle on any page in InDesign by specifying position, size, fill, stroke, and corner radius in millimeters.
Instructions
Create a rectangle on the specified page (defaults to active page in InDesign UI)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X position in mm | |
| y | Yes | Y position in mm | |
| width | Yes | Width in mm | |
| height | Yes | Height in mm | |
| pageIndex | No | Page index (0-based). Omit to use the active page in InDesign. | |
| fillColor | No | Fill color (RGB hex or swatch name) | |
| strokeColor | No | Stroke color | |
| strokeWidth | No | Stroke width in points | |
| cornerRadius | No | Corner radius in mm |