Reorder Component
design_reorder_componentMove a UI component to appear before or after another component in the canvas, using their unique IDs to specify the new order.
Instructions
Reorder a component relative to another component in the canvas.
Args:
from_id (string): ID of the component to move
to_id (string): ID of the reference component
position (string): Where to place the moved component relative to the reference — 'before' or 'after'
Example:
design_reorder_component(from_id="comp_123", to_id="comp_456", position="before")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_id | Yes | ID of the reference component | |
| from_id | Yes | ID of the component to move | |
| position | Yes | Position relative to reference component |