> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloudcruise.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Tab Management

> Open, close, and switch between browser tabs

The **Tab Management** node controls browser tabs, allowing you to open new tabs, switch between tabs, and close tabs.

## Parameters

| Parameter   | Type   | Required | Description                                     |
| ----------- | ------ | -------- | ----------------------------------------------- |
| `tabAction` | string | Yes      | Action to perform: `OPEN`, `CLOSE`, or `SWITCH` |
| `url`       | string | No       | URL to open (required for `OPEN` action)        |
| `tab_index` | number | No       | Index of tab to switch to or close (0-based)    |

## Tab Actions

### OPEN

Opens a new browser tab with the specified URL.

### SWITCH

Switches focus to a tab at the specified index.

### CLOSE

Closes a tab at the specified index (or current tab if not specified).

## Examples

### Open New Tab

Open a new tab with a URL:

```json theme={null}
{
  "id": "abc123",
  "name": "Open settings in new tab",
  "action": "TAB_MANAGEMENT",
  "parameters": {
    "tabAction": "OPEN",
    "url": "https://app.example.com/settings"
  }
}
```

### Open Tab with Dynamic URL

Use variables in the URL:

```json theme={null}
{
  "id": "abc123",
  "name": "Open user profile",
  "action": "TAB_MANAGEMENT",
  "parameters": {
    "tabAction": "OPEN",
    "url": "https://app.example.com/users/{{context.inputs.user_id}}"
  }
}
```

### Switch to Tab

Switch to a specific tab by index:

```json theme={null}
{
  "id": "abc123",
  "name": "Switch to first tab",
  "action": "TAB_MANAGEMENT",
  "parameters": {
    "tabAction": "SWITCH",
    "tab_index": 0
  }
}
```

### Close Current Tab

Close the currently active tab:

```json theme={null}
{
  "id": "abc123",
  "name": "Close current tab",
  "action": "TAB_MANAGEMENT",
  "parameters": {
    "tabAction": "CLOSE"
  }
}
```

## Notes

* Tab indices are 0-based (first tab is index 0)
* When opening a new tab, focus automatically switches to the new tab
* Closing the last remaining workflow tab is rejected because it would destroy the browser window and end the session
