find_color
Locate connected regions of a specified color in an image, returning bounding boxes, area share, and centroids plus total coverage. Use it to identify objects before editing.
Instructions
Where does a colour occur? Returns connected regions (bbox, share, centroid), largest first, plus total coverage. Good for locating objects before editing them.
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": "find_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| color | Yes | ||
| layer | No | ||
| limit | No | ||
| width | No | ||
| height | No | ||
| tolerance | No |