attention.analyze
Predict visual attention on a saved PNG screenshot to find focal points, score named regions, and generate a heatmap overlay for UI review.
Instructions
Predict visual attention on a saved PNG screenshot with HotGaze. Returns focal points, optional region scores, and a heatmap overlay.
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": {
"screenshot_id": "<screenshot_id>"
},
"name": "attention.analyze"
}
}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. | |
| overlay | No | Generate and store the PNG overlay. Default true. | |
| regions | No | Named rectangles in actual PNG pixels, measured from the top left. | |
| return_image | No | Include the overlay as an MCP image. Default true when overlay is enabled. | |
| screenshot_id | Yes | PNG artifact ID from page.screenshot. Use mode:viewport for a first-glance review. |