Device actions


Get Device Details

Gets information about the current device.


Set Brightness

Sets the device brightness.


Set Flashlight

Turns on or off the flashlight near the device's camera.


Set Low Power Mode

Sets the device’s Low Power Mode to on or off.


Toggle Do Not Disturb

Turns Do Not Disturb on or off.


Get Battery Level

Outputs the percentage of battery remaining as a number from 0 to 100.


Set Bluetooth

Sets the device’s Bluetooth to on or off.


Play Sound

Plays the audio file passed as input, or a default notification sound if no audio file was passed.


Set Appearance

Changes system appearance (between Light/Dark).


Set Volume

Sets the system volume. If you set the volume using a variable, use a number between 0 and 1 (for example, pass 0.5 for half volume).