tabs_activate
Activate a specific Chrome tab to bring it into focus and confirm its document is visible. Switches the active tab visibly without relying on OS-level foregrounding.
Instructions
Explicitly activate an authorized Chrome tab and verify document visibility. Visibly changes the active tab; CDP-only mode never invokes an OS foreground helper.
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": "tabs_activate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | REQUIRED Target ID returned by tabs_create or tabs_context | |
| workerId | No | Optional worker ownership scope to enforce before activation | |
| windowForeground | No | Foreground path. Only cdp-only is supported; no OS process/window activation is attempted. | cdp-only |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | ||
| outcome | Yes | ||
| attempts | Yes | ||
| activated | Yes | ||
| pathTaken | Yes | ||
| superseded | Yes | ||
| activationSent | Yes | ||
| documentFocused | Yes | ||
| requestSequence | Yes | ||
| visibilityState | Yes | ||
| verificationError | No | ||
| windowForegroundAttempted | Yes |