ps_selection
Creates and modifies Photoshop selections—including all, none, invert, shapes, AI subject, sky, and transparency—then fills, deletes, masks, or copies selected content to a layer.
Instructions
Photoshop: selections — all, none, invert, rect [x,y,w,h], ellipse [x,y,w,h], subject (AI Select Subject), sky, layerTransparency, feather {value}, expand {value}, contract {value}, smooth {value}; then optional fill hex, delete, or mask (adds a layer mask from the selection).
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_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rect | No | ||
| then | No | ||
| color | No | ||
| layer | No | Layer name (searched in groups too); omit for the active layer. | |
| value | No | ||
| action | Yes | ||
| document | No | Document name; omit for the active document. |