Switch window
switch_windowSwitch focus to a specific browser window or popup using its zero-based index, or target the newest window after opening one.
Instructions
Switch to another browser window or popup. Use target:"newest" after an action that opens a window, or index to select a window by its zero-based position.
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": "switch_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Zero-based window index. | |
| target | No | Switch to the newest window. | |
| timeoutMs | No | How long to poll for a new window. Defaults to IE_MCP_TIMEOUT_MS. |