shape_create
Create geometric shapes—rectangles, ellipses, polygons, or lines—on an InDesign page by giving bounds, fill and stroke colors, and a page index.
Instructions
Create a geometric shape (rectangle, ellipse, polygon, line)
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": {
"pageIndex": "<pageIndex>",
"type": "<type>",
"bounds": "<bounds>"
},
"name": "shape_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| bounds | Yes | ||
| fillColor | No | ||
| pageIndex | Yes | ||
| layerIndex | No | ||
| document_id | No | Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document. | |
| strokeColor | No | ||
| strokeWeight | No |