browser_frame_inventory
Identify whether visible UI resides in nested iframes or canvas by listing child iframes, canvas elements, shadow roots, and body rectangle within a frame.
Instructions
Run inside the frame: list child iframes (id, name, src, rect), canvas elements (rect), count of open shadow roots, bodyRect. Use to see if visible UI is in a nested iframe or canvas.
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>"
},
"name": "browser_frame_inventory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeoutMs | No | Timeout to resolve frame | |
| frameSelector | Yes | Chained iframe selector |