# List tabs

Node type `browser_getCurrentPage`

## What it does

List the browser's tabs so a later step can select one.

## Desktop client configuration

![List tabs configuration in the desktop client](/assets/get-current-page.22417e550b34594d53b2ca14138a50a434e6263c582566dce4331b91783c2dcf.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 |
|  --- | --- | --- | --- | --- |
| `outputMode` | `"all"` / `"index"` / `"current"` (supports variable references) | No | `"all"` | Output content. Editor initial value `"all"` |
| `tabOrder` | `WorkflowNumber` | No | `1` | Tab index; integer; minimum after resolution: 1. Editor initial value `1` |


## Mode requirements and limits

**`outputMode` `eq` `"index"`**

- tabOrder is an integer starting at 1, and the tab must exist.
- Validation code `RPA_NODE_INPUT_INVALID`
- outputMode=index uses tabOrder, which starts at 1. all/current do not need it.
- Validation code `RPA_NODE_INPUT_INVALID`


## Input references

| Field | Allowed forms |
|  --- | --- |
| `outputMode` | `literal`, `template` |
| `tabOrder` | `literal`, `numericExpression` |


## Outputs

**Mode** `outputMode` `eq` `"all"`

| Output field | Type or values |
|  --- | --- |
| `tabs` | array<`TabInfo`> |
| `tabCount` | `number` |


**Mode** `{"op":"in","field":"outputMode","values":["current","index"]}`

| Output field | Type or values |
|  --- | --- |
| `tab` | `TabInfo` |


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

## JSON example

A complete node object for a workflow's `nodes` array or another node's `blocks`.

```json
{
  "id": "list_tabs",
  "type": "browser_getCurrentPage",
  "data": {
    "title": "List the open tabs",
    "browserAction": "getCurrentPage",
    "browserUi": {
      "inputs": {
        "outputMode": "all"
      },
      "exception": {
        "timeout": 30000,
        "policy": "interrupt"
      }
    }
  }
}
```

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