ui_tabs
ui_tabsList, switch, and close browser tabs in a Playwright automation session to control which tab tools act on and manage link-opened tabs.
Instructions
Manage browser tabs of this session (numbered from 1). A link with target=_blank or window.open opens a new tab, announced on the next tool response but not switched to. list: index, url, title, current. switch: make that tab the one every tool acts on. close: close that tab (default: the current one) and fall back to the previous one; the last tab cannot be closed.
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": {
"action": "<action>"
},
"name": "ui_tabs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Tab number from `list` (required for switch) | |
| action | Yes | list, switch or close | |
| session_id | No | Which open session to act on, as returned by ui_start_session. Optional with one open session; required when several are open. |