Align Layer
ps_alignAlign a layer to document edges or center. Choose from horizontal, vertical, both centers, left, right, top, or bottom.
Instructions
Aligns a layer relative to the document bounds. Use center-both to perfectly center a layer, or pick an edge alignment.
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": {
"alignment": "<alignment>"
},
"name": "ps_align"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alignment | Yes | Alignment direction relative to document bounds | |
| layerName | No | Target layer — defaults to active layer |