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.
appNamestring
The name and path of the app.
appUuidstring
The unique ID of the app.
environmentstring
The selected environment.
inEditorModeboolean
Whether the current app is open in the App IDE.
pageTagstring
The release version of the current app. Defaults to latest
if using the current working version.
runningQueriesstring[]
A list of queries currently running.
translationsobject
Mobile-specific properties
The following properties are available in mobile apps.
deviceBrandstring[]
The human-readable device brand.
deviceManufacturerstring[]
The device manufacturer.
deviceModelNamestring[]
The human-readable name of the device model.
deviceNamestring[]
The human-readable name of the device.
platform'web' | 'android' | 'ios'
The current device platform.