select_page
Adopt a popup or new tab as a new session id to control with clicks, assertions, and logs, while the original tab remains active.
Instructions
Adopt a popup or new tab this session opened (window.open, target=_blank, OAuth/payment windows) as a NEW session id you can drive with every normal tool — clicks, assertions, logs. Console/network recording attaches the instant the driver sees the popup open, so early traffic is captured (requests firing in the popup's first milliseconds can precede any driver's visibility — a browser-automation limit, not a periscope one). Returns {session_id, url, title}; with several popups open, call without index to list them first. The parent session keeps working for the original tab.
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": {
"session_id": "<session_id>"
},
"name": "select_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Which open popup to adopt, 0-based (omit when only one is open, or to list them) | |
| session_id | Yes | Root session that opened the popup |