create_polygon
Create a polygon on the active InDesign page by specifying position, dimensions, sides, and optional fill/stroke colors.
Instructions
Create a polygon on the active page
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>"
},
"name": "create_polygon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X position in mm | |
| y | Yes | Y position in mm | |
| sides | No | Number of sides | |
| width | Yes | Width in mm | |
| height | Yes | Height in mm | |
| fillColor | No | Fill color (RGB hex or swatch name) | |
| strokeColor | No | Stroke color | |
| strokeWidth | No | Stroke width in points |