Make Selection
photopea_make_selectionCreate pixel selections in the active document. Choose from selecting the entire canvas, a rectangle, or an ellipse by specifying bounds in pixels. Optionally add feather for soft edges.
Instructions
Create a pixel selection region in the active document. After creating a selection, use fill_selection to fill it with color, or clear_selection to deselect. Use type 'all' to select the entire canvas, or 'rect'/'ellipse' with bounds for a specific region.
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": {
"type": "<type>"
},
"name": "photopea_make_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Selection shape: 'all' selects the entire canvas, 'rect' creates a rectangle, 'ellipse' creates an ellipse | |
| bounds | No | Selection region bounds in pixels. Required for 'rect' and 'ellipse' types, ignored for 'all'. | |
| feather | No | Soft edge radius in pixels for anti-aliased selection edges (0 = hard edge) |