transform_distribute
Evenly space selected InDesign objects across a page or within margins by aligning edges, centers, or gaps horizontally and vertically.
Instructions
Distribute objects evenly on a 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": {
"pageIndex": "<pageIndex>",
"itemIndices": "<itemIndices>",
"distributeMode": "<distributeMode>"
},
"name": "transform_distribute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bounds | No | selection | |
| 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. | |
| itemIndices | Yes | ||
| distributeMode | Yes |