midscene_set_active_tab
Switch browser focus to a specific tab using its ID. Use this tool after identifying tabs with midscene_get_tabs to manage tab navigation in automated testing workflows.
Instructions
Switches the browser's focus to the tab specified by its ID. Use midscene_get_tabs first to find the correct tab ID.
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": "midscene_set_active_tab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | The ID of the tab to set as active. |