place_relative
Move one node next to another using page coordinates, setting side, gap, and cross-axis alignment so nodes with different parents can be positioned relative to each other.
Instructions
Move a node next to another node: side right|left|below|above with a gap, aligned start|center|end along the other axis. Uses absolute (page) coordinates, so the two nodes may have different parents. Fails for auto-layout children that aren't absolutely positioned.
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": {
"nodeId": "<nodeId>",
"relativeToId": "<relativeToId>"
},
"name": "place_relative"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gap | No | Spacing in px, default 0 | |
| file | No | Target file (fileKey, id or name). Defaults to the most recently active file. | |
| side | No | Default right | |
| align | No | Cross-axis alignment to the reference, default start (top for left/right, left for above/below) | |
| nodeId | Yes | Node to move | |
| relativeToId | Yes | Reference node (not moved) |