align
Position Inkscape vector elements on a page, relative to each other, or inside another element; center labels in boxes and return move offsets and new bounding boxes.
Instructions
Align elements to the page, to each other, or inside another element — e.g. centre a label in a box: {"ids": ["label"], "to": "box", "horizontal": "center", "vertical": "middle"}. Operations run in order, each seeing the previous moves. Returns the moves [dx, dy] and new bboxes in user units.
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": {
"operations": "<operations>"
},
"name": "align"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | No | ||
| preview | No | ||
| operations | Yes |