Components Arrange
components_arrangeAligns or distributes selected page components within their selection bounds and previews conflict-checked coordinate updates while preserving sizes, styles, and layers.
Instructions
Align or distribute unrotated, ungrouped leaf components on a static page.
Align 2–100 objects against their selection bounds, not canvas bounds. Distribute 3–100 objects with equal edge gaps, holding first/last positions fixed. Negative gaps (overlap) are allowed. Stable position ties preserve input ID order. Computed coordinates truncate toward zero to integer pixels as updatePage does; preview includes requested and persisted coordinates. Sizes, opposite-axis positions, styles and layers remain unchanged. report_refresh first; page_get fingerprint; one versioned page write with preview/read-back/journal/undo. Groups/responsive are separate.
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": {
"page_id": "<page_id>",
"component_ids": "<component_ids>",
"action": "<action>",
"expected_fingerprint": "<expected_fingerprint>"
},
"name": "components_arrange"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| dry_run | No | ||
| page_id | Yes | ||
| report_id | No | ||
| component_ids | Yes | ||
| expected_fingerprint | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||