set_transform
Move, scale, rotate, flip, or crop image layers to set position, size, orientation, and source framing on the canvas. Use width or height to resize proportionally.
Instructions
Move/scale/rotate (degrees, clockwise)/flip a layer. width or height = target size on the canvas (keeps proportions). crop=[x,y,w,h] in SOURCE pixels of an image layer ([] removes it).
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": "set_transform"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| crop | No | ||
| layer | Yes | ||
| scale | No | ||
| width | No | ||
| flip_h | No | ||
| flip_v | No | ||
| height | No | ||
| project | No | ||
| rotation | No |