align_items
Align and distribute selected objects horizontally or vertically relative to a selection, artboard, or key object, with optional fixed spacing and visible-bounds handling.
Instructions
Align and/or distribute items. horizontal: "left" | "center" | "right"; vertical: "top" | "middle" | "bottom". to: "selection" (default: the bounds of all given items) | "artboard" (artboard index, default the reference one) | "key" (key ref stays put). distribute: "horizontal" | "vertical" — equal gaps between items (within their extent, or across the artboard with to:"artboard"), or a fixed spacing (session units). bounds: "geometric" (default) | "visible" (incl. stroke).
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": {
"refs": "<refs>"
},
"name": "align_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| key | No | ||
| refs | Yes | ||
| bounds | No | ||
| spacing | No | ||
| artboard | No | ||
| vertical | No | ||
| distribute | No | ||
| horizontal | No |