Skip to main content

The retoolContext object

Information about the current app.

retoolContext contains read-only information about the app currently in use. You can reference these values in apps, and as URL parameters or Headers in API resource configuration settings.

Properties

You can write JavaScript almost anywhere in Retool to manipulate or read information about components.

appName
string

The name and path of the app.

appUuid
string

The unique ID of the app.

environment
string

The selected environment.

inEditorMode
boolean

Whether the current app is open in the App IDE.

pageTag
string

The release version of the current app. Defaults to latest if using the current working version.

runningQueries
string[]

A list of queries currently running.

translations
object

Mobile-specific properties

The following properties are available in mobile apps.

deviceBrand
string[]

The human-readable device brand.

deviceManufacturer
string[]

The device manufacturer.

deviceModelName
string[]

The human-readable name of the device model.

deviceName
string[]

The human-readable name of the device.

platform
'web' | 'android' | 'ios'

The current device platform.