switch_tab
Directs subsequent browser automation commands to a specified tab by its ID, attaching to the tab if not yet attached. Ensures actions apply to the intended target tab.
Instructions
switch_tab(123) — 把后续命令切到该标签(未 attach 则先 attach)。
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": {
"tab_id": "<tab_id>"
},
"name": "switch_tab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | Yes |