attention.compare
Compare predicted visual attention between two same-sized PNG screenshots, optionally scoring named pixel regions to identify where baseline and candidate differ.
Instructions
Compare predicted attention on two same-sized PNG screenshot artifacts. Regions apply to the same pixel coordinates in both screenshots.
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": {
"baseline_id": "<baseline_id>",
"candidate_id": "<candidate_id>"
},
"name": "attention.compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| faces | No | Enable the optional YuNet face-attention layer. Default false. | |
| backend | No | Fast UI saliency heuristic (default) or pretrained UNISAL for image-heavy screens and second estimates. Deep dependencies and weights download automatically on first use with the default uv runner. | |
| regions | No | Named rectangles in actual PNG pixels, measured from the top left. | |
| baseline_id | Yes | ||
| candidate_id | Yes |