browser_hit_test_rel
Identify the element at a relative position within an iframe to verify click targets. Returns tag, id, class, bounding rect, pointer-events, and cursor info.
Instructions
Return element at relative (rx, ry) in [0..1] inside the frame via elementFromPoint. Returns tag, id, class, rect, pointerEvents, cursor; if iframe, includes src/name. Confirms where clicks land.
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": {
"frameSelector": "<frameSelector>",
"rx": "<rx>",
"ry": "<ry>"
},
"name": "browser_hit_test_rel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rx | Yes | Relative X in 0..1 | |
| ry | Yes | Relative Y in 0..1 | |
| timeoutMs | No | Timeout to resolve frame | |
| frameSelector | Yes | Chained iframe selector |