find_by_image
Locate visual elements on a page using image template matching when DOM selectors are unavailable. Returns coordinates of best match.
Instructions
⭐ Find an image on the current page via OpenCV template matching.
Takes a fresh screenshot, matches against template_path image, returns
(x, y) center of best match. Use for finding visual buttons/icons when
DOM selectors aren't available.
Returns JSON: {"found": true, "x": ..., "y": ..., "score": ..., "template": "..."}
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": {
"template_path": "<template_path>"
},
"name": "find_by_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template_path | Yes | ||
| threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |