---
title: "Switch to browser tab"
method: POST
path: "/boxes/{boxId}/browser/tabs/{tabId}/switch"
tags: ["Browser"]
---

# Switch to browser tab

`POST /boxes/{boxId}/browser/tabs/{tabId}/switch`

Switch to a specific browser tab by bringing it to the foreground (making it the active/frontmost tab). This operation sets the specified tab as the currently active tab without changing its URL or content. The tab will receive focus and become visible to the user. This is useful for managing multiple browser sessions and controlling which tab is currently in focus.

## Path parameters

- `boxId` string, required
- `tabId` string, required

## Response `200`

Successfully switched to the tab

- BrowserTab — Browser tab
  - `id` string, required — The tab id
  - `title` string, required — The tab title
  - `url` string, required — The tab url
  - `favicon` string, required — The tab favicon
  - `active` boolean, required — Whether the tab is the current active (frontmost) tab
  - `loading` boolean, required — Whether the tab is currently in a loading state. The value is **true** while the browser is still navigating to the target URL or fetching sub-resources (i.e. `document.readyState` is not "complete"). It typically switches to **false** once the `load` event fires and all major network activity has settled.

---

[API](https://skmtc.dev/babelcloud/apis/gbox-open-api.md) · [All operations](https://skmtc.dev/babelcloud/apis/gbox-open-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/babelcloud/gbox-open-api/revisions/d655577fa915/schema)
