ie_close_window
Closes a pop-up or modal dialog window in IE mode by hwnd or driver handle, dismissing script alerts and prompts so automation can continue. Leaves the main window, tabs, and system dialogs untouched.
Instructions
Close a pop-up or modal dialog window: target is hwnd: (from ie_windows) or a driver_handle. It will not close the main window (use ie_close) or an attached tab (use ie_detach), and it never touches a system dialog (file, print or security prompt): those are reported as 'system dialog: ask the user'. A script alert/confirm/prompt is closed like its Cancel/OK button (a prompt then returns null). An hwnd target is closed with window.close() over COM, else with WM_CLOSE.
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": {
"target": "<target>"
},
"name": "ie_close_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes |