transform_align
Align selected InDesign page objects left, center, right, top, middle, or bottom relative to the selection, margins, or page to fix layout positioning.
Instructions
Align objects on a page relative to selection, margins, or 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>",
"alignMode": "<alignMode>"
},
"name": "transform_align"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alignMode | Yes | ||
| pageIndex | Yes | ||
| relativeTo | No | selection | |
| 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 |