Adjust an existing board's layout
board_opsAdjust an existing board without regenerating it: align, distribute, move, resize, snap, or auto-layout elements by ID while preserving labels and arrow bindings.
Instructions
Adjust an EXISTING board without regenerating it: align/distribute/move/resize/snap/auto_layout by element ids from read_page. Keeps every element, label and arrow binding, reroutes arrows. Prefer this over update_board for "make it neat", "align", "tidy up" requests. Ops (applied in order): {op:"align",ids,edge:"left"|"centerX"|"right"|"top"|"centerY"|"bottom"} aligns to the first id's edge (or the average for center*); {op:"distribute",ids,axis:"x"|"y",gap?} spaces elements evenly along an axis (or by a fixed gap from the first); {op:"move",ids,dx,dy} shifts elements; {op:"resize",ids,w?,h?} sets a uniform size (bound text is kept fitting); {op:"snap",ids?,grid?=20} rounds x/y/w/h to a grid (all shapes if ids omitted); {op:"auto_layout",direction?="LR"|"TB",colGap?=260,rowGap?=140,ids?} lays a connected graph out in layers by longest path from its sources (unconnected shapes get their own row below; shapes inside a frame are skipped). Requires a write-scoped token.
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": {
"id": "<id>",
"ops": "<ops>"
},
"name": "board_ops"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Board page id | |
| ops | Yes | Operations to apply in order — see the tool description for each op's shape. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | What the operations changed | |
| elements | Yes | Layout summary of the board after the operations |