selection_preview
See a saved selection: an overlay (red over what is NOT selected) or the mask itself, which shows whether a selection caught what was meant before it is used.
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": {
"image": "<image>",
"channel": "<channel>"
},
"name": "selection_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Image id, as returned by open_photo. | |
| style | No | overlay: the image with red over what is NOT selected. mask: white = selected. | overlay |
| max_px | No | Long-edge cap for the proxy render, in pixels. | |
| channel | Yes | The saved selection to show. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | ||
| height | No |