Transform Layer
ps_transformApply move, scale, rotate, flip, or fit-to-document transforms to the active or named layer in Adobe Photoshop.
Instructions
Applies a transform to the active (or named) layer. Supports move, scale, rotate, flip-horizontal, flip-vertical, and fit-to-document — all in one tool. Supply only the parameters relevant to your action.
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": {
"action": "<action>"
},
"name": "ps_transform"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | The transform to apply | |
| layerName | No | Target layer — defaults to active layer | |
| x | No | Horizontal delta in pixels (for move) | |
| y | No | Vertical delta in pixels (for move) | |
| angle | No | Rotation angle in degrees (for rotate) | |
| scalePercent | No | Scale percentage — 100 = no change (for scale) | |
| anchorPosition | No | Anchor point for scale and rotate transforms |