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")
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": {
"from_id": "<from_id>",
"to_id": "<to_id>",
"position": "<position>"
},
"name": "design_reorder_component"
}
}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 |