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?
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) |