reorder_element
Move a layer one step forward or backward among layers of the same kind. It cannot move a layer across kinds: back to front, cards always paint back divs, phones, image layers, front divs, then texts.
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": {
"screenshotId": "<screenshotId>",
"elementId": "<elementId>",
"kind": "<kind>",
"direction": "<direction>"
},
"name": "reorder_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| direction | Yes | ||
| elementId | Yes | ||
| screenshotId | Yes |