align_layer
Align a layer to the canvas edges or center horizontally and vertically, applying an optional pixel margin for precise positioning.
Instructions
Align to the canvas: h left/center/right, v top/middle/bottom (null = leave), margin in px.
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": {
"layer": "<layer>"
},
"name": "align_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | center | |
| v | No | middle | |
| layer | Yes | ||
| margin | No | ||
| project | No |