# Switch browser

Node type `browser_switchBrowser`

## What it does

Change the browser environment used by later steps.

## Desktop client configuration

![Switch browser configuration in the desktop client](/assets/switch-browser.fd18ef9ff437c34505661fd5c450c65bfe5d18087521577033537cf8c74d12e8.0538f3a9.webp)

Captured in the English interface of MoreLogin Desktop V2.73.101.

## Inputs

These fields belong in `data.browserUi.inputs`.

| Field | Type or values | Schema required | Execution default | Description and bounds |
|  --- | --- | --- | --- | --- |
| `environment` | `string` | No | — | Environment ID |


## Mode requirements and limits

- environment takes an environment ID string, or an environment object from a previous node that contains environmentId/id. An arbitrary CDP address cannot be forged.
- Validation code `RPA_NODE_INPUT_INVALID`


## Input references

| Field | Allowed forms |
|  --- | --- |
| `environment` | `literal`, `template` |


## Outputs

| Output field | Type or values |
|  --- | --- |
| `environment` | `EnvironmentInfo` |
| `previousEnvironmentId` | `string` / `null` |


Reference published fields as `${nodeId.data.field}`.

## JSON example

A complete node object for a workflow's `nodes` array or another node's `blocks`. An earlier Start browser node starts that profile. Replace the environment ID with the ID of one of your profiles.

```json
{
  "id": "use_second_profile",
  "type": "browser_switchBrowser",
  "data": {
    "title": "Switch to the second profile",
    "browserAction": "switchBrowser",
    "browserUi": {
      "inputs": {
        "environment": "1993244721490239488"
      },
      "exception": {
        "timeout": 30000,
        "policy": "interrupt"
      }
    }
  }
}
```

[Back to the node catalog](/browser-rpa/nodes)