ie_switch_window
Sets which IE mode window other tools act on, so pop-ups and modal dialogs can be targeted by handle, title, or main window, then switches back after the window closes.
Instructions
Make a driver window the one the other tools act on (a pop-up from window.open, or a showModalDialog window). Give exactly one of: handle (a driver_handle from ie_windows), title_contains (case-insensitive part of the window's document title) or main=true (the session's first window). Returns the new window's title and URL. Switch back with main=true when you are done: after a window closes the driver has no current window. Alternative that needs no switching: pass target="hwnd:" to the other tools.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ie_switch_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| main | No | ||
| handle | No | ||
| title_contains | No |