ps_resize
Adjust Photoshop document dimensions and orientation by resizing image or canvas, cropping, rotating, trimming transparency, flattening, or flipping.
Instructions
Photoshop: image size (width/height px, resample), canvas size (anchor), crop [left,top,right,bottom], rotate canvas deg, trim transparent pixels, flatten, flip horizontal/vertical.
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_resize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| angle | No | ||
| width | No | ||
| action | Yes | ||
| anchor | No | ||
| bounds | No | ||
| height | No | ||
| document | No | Document name; omit for the active document. | |
| resolution | No |