select_by_color
Select all pixels matching a target color within a per-channel tolerance, using replace, add, or subtract selection modes—like a global magic wand for precise edits.
Instructions
Select every pixel matching color (composited, within
tolerance 0-255 per channel) — a global magic wand. mode is
replace/add/subtract.
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": {
"color": "<color>"
},
"name": "select_by_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| mode | No | replace | |
| color | Yes | ||
| tolerance | No |