Activate Chrome tab
activate_tabFocus a specified Chrome tab and its window to resolve DOCUMENT_HIDDEN errors when click or type actions fail. Waits for the tab to become visible, then returns its visibility state; use allowHidden only when the tab is already hidden.
Instructions
Focus an allowed tab and its window without navigating. Waits until the document reports visibilityState visible or a short timeout elapses. Returns visibilityState and visible; reason is present only when visible is false. focused is not success. Use this when click/type fail with DOCUMENT_HIDDEN. Pass allowHidden=true only when visibilityState is hidden. If reason is host_permission_denied or document_unavailable, grant permission or reload; allowHidden will not help. Does not change the page URL.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "activate_tab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | Optional Chrome tab id. Defaults to the claimed session tab, then the active tab. | |
| sessionTabId | No | Optional claimed tab session id returned by claim_tab. |