activate_tab
Bring a specific browser tab to the front and focus its window, making it visible to the user or for screen captures. Use when you need to observe the active page or record the desktop.
Instructions
Bring a target browser tab to the front and focus its window.
Side effects: Changes system window focus and switches the user's active tab viewport. Does not reload the page or alter DOM state.
Usage guidelines:
When to use: Use when a human user needs to observe the active page, or before capturing desktop-wide OS screenshots and video screencasts.
When NOT to use: Do NOT call this before reading or interacting with tabs. TabPilot tools (
read_tab,query_dom,click,fill,eval_js,screenshot) work off-screen in background tabs without stealing focus.
Args:
tab_id: Exact tab identifier (e.g. from list_tabs). If omitted,
uses the frontmost tab or matches by url_pattern.
url_pattern: Optional regex pattern matched against tab URLs
(e.g. 'github.com').
Returns: Confirmation message containing the activated tab ID and title/URL. Returns an error message if no matching tab is found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | No | ||
| url_pattern | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |