detectModals
Identify modal dialog elements in a browser tab, with options to filter by z-index and viewport coverage.
Instructions
Detect modals
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": {
"connectionReason": "<connectionReason>"
},
"name": "detectModals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| minZIndex | No | Min z-index to consider | |
| connectionReason | Yes | Connection reference (use the reference from launchChrome output, e.g., "unnamed-connection-default" or your renamed tab) | |
| includeBackdrops | No | Include backdrop/overlay elements | |
| minViewportCoverage | No | Min viewport coverage (0-1, default: 0.25) |