shape_modify
Modify an existing shape's position, size, fill, stroke, or corner radius in Adobe InDesign by specifying page and item indices.
Instructions
Modify properties of an existing shape
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>",
"itemIndex": "<itemIndex>"
},
"name": "shape_modify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| width | No | ||
| height | No | ||
| fillColor | No | ||
| itemIndex | Yes | ||
| pageIndex | Yes | ||
| 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 | ||
| cornerRadius | No | ||
| strokeWeight | No |