cu_find_anchor
Locates a template RGB icon on screen using SAD or NCC matching to identify its position for desktop automation.
Instructions
Locate template RGB icon on screen using pure Python SAD or NCC matching.
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": {
"screen_rgb_base64": "<screen_rgb_base64>",
"width": "<width>",
"height": "<height>",
"template_rgb_base64": "<template_rgb_base64>",
"tmpl_width": "<tmpl_width>",
"tmpl_height": "<tmpl_height>"
},
"name": "cu_find_anchor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Screen pixel width. | |
| height | Yes | Screen pixel height. | |
| method | No | Matching method (SAD or NCC). | |
| threshold | No | Match threshold in [0.0, 1.0]. | |
| tmpl_width | Yes | Template pixel width. | |
| tmpl_height | Yes | Template pixel height. | |
| screen_rgb_base64 | Yes | Base64 encoded screen RGB bytes. | |
| template_rgb_base64 | Yes | Base64 encoded template RGB bytes. |