CDP: Switch
cdp_switchSet a specific open browser tab as the active CDP target by tab index or URL substring, then keep it fixed for later CDP calls.
Instructions
Make a specific open tab the active target (by tab index or url substring). Sticks on the session so later cdp_* calls act on it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | Tab index from cdp_tabs to act on. | |
| url | No | Pick the tab whose URL contains this substring. | |
| port | No | CDP debug port (default 9222). |