playwright_click_and_switch_tab
Click a specified link using a CSS selector and automatically switch to the newly opened tab to streamline web navigation tasks in browser automation workflows.
Instructions
Click a link and switch to the newly opened 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": {
"selector": "<selector>"
},
"name": "playwright_click_and_switch_tab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS selector for the link to click |