detect_visual_occlusion
Determine if one element overlaps another by comparing bounding boxes, revealing whether a button is hidden under a sticky header or a cookie banner blocks a call-to-action.
Instructions
Checks if one element physically overlaps another by computing the intersection of their bounding boxes. Use to answer: is this button hidden under a sticky header? Does the cookie banner block the CTA?
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": {
"url": "<url>",
"target_selector": "<target_selector>",
"overlay_selector": "<overlay_selector>"
},
"name": "detect_visual_occlusion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the page to analyze | |
| viewport | No | Viewport size (default: 1280×720) | |
| target_selector | Yes | The element that might be occluded (e.g., the button) | |
| overlay_selector | Yes | The element that might be on top (e.g., the sticky header) |