Activate a tab
tab_switchSelect a tab in the MCP group in the background by default, optionally bringing Chrome forward only when visibility or interaction requires it; returns the tab summary.
Instructions
Select a tab in the MCP group without bringing Chrome forward by default. Other tools already target tabId and do not need a preceding switch. Set bringToFront=true only when the user wants to see the tab or a required interaction needs a visible window. Returns the tab summary.
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": {
"tabId": "<tabId>"
},
"name": "tab_switch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Target tab ID (must be in the MCP group) | |
| bringToFront | No | Also bring the window forward (default false). Requires the user's popup setting 'Tillåt att agenter tar fram Chrome', off by default; otherwise FOCUS_DISABLED. Ordinary agent work stays in the background. |