Skip to main content
Browser

Get every page

Get every page

Returns the list of every tab open in a browser session, so you can iterate over them or pick one by index with Get a page from the list.


Options

Browser or page ID

The browser opening action whose list of open tabs is read.

Returns

Javascript code

js
actions["action-id"].pages // the sessions of every open tab (List)
actions["action-id"].count // how many tabs are open (Number)

Field selection

  • pages — the sessions of every open tab. Each item can go in another action's Browser or page ID field to work with that particular tab.
  • count — how many tabs were open when the action ran (Number)

Rules and conditions

  • Browser or page ID is required.
  • The list is indexed from 0 (the first tab is at index 0).
  • With no tabs open, the list comes back empty and count is 0.