← Back to the Screen Builder Manual

Scenes V2 WebView Tasker Actions Reference

This is the full list of individual Tasker actions exposed to Scenes V2 WebView content through the JavaScript bridge. Each one is called as await Tasker.<name>({ ...options }) and returns a Promise that resolves to an object of the action's output variables plus any other task-local variables (keyed without the leading %) or rejects with an Error if the action fails. See the manual's JavaScript Bridge section for how to reach the bridge and the surrounding methods.

Tip: For autocomplete of these actions in your editor, download the VS Code workspace, unzip it, and open the folder in VS Code. Type Tasker. in main.js to get every action with its option keys and descriptions as you type.

Examples. Three common patterns for calling the actions below:

// 1. Call an action with options. Strings, booleans, and ints go in the options object.
await Tasker.flash({ text: 'Saved!', long: true });
// 2. Read the result. The Promise resolves to an object of the action's output
//    variables (plus any other task locals), keyed without the leading %.
const { stdout } = await Tasker.runShell({ cmd: 'getprop ro.product.model' });
console.log('Device model:', stdout);
// 3. Handle failure. A failing action rejects with an Error.
try {
  await Tasker.mediaControl({ cmd: 'next' });
} catch (e) {
  console.error('Could not skip track:', e.message);
}
Notation: Options that accept a fixed set of strings are shown as (a|b|c); boolean options take true/false and are marked (bool); integer options are marked (int). A dash (—) means the action takes no options. All options are optional unless the action's purpose requires them.
ActionOption keysDescription
browseUrlurlOpen a URL in the browser
callnumber, auto (bool)Make a phone call
callBlockmatch, info (bool)Block calls matching a pattern
callDivertfrom, to, info (bool)Divert calls from one number to another
callRevertmatchRevert a call divert or block rule
clearKeykeyClear a stored encryption passphrase
composeEmailto, subject, messageOpen email compose screen
composeMmsto, subject, message, attachmentOpen MMS compose screen
composeSmsto, messageOpen SMS compose screen
createDirectorydir, createParents (bool), root (bool)Create a directory
decryptDirpath, key, removeKey (bool)Decrypt all files in a directory
decryptFilepath, key, removeKey (bool)Decrypt a file
deleteDirectorydir, recurse (bool), root (bool)Delete a directory
deleteFilepath, shred (int), root (bool)Delete a file
disableDisable Tasker monitoring
encryptDirpath, key, shred (bool), remember (bool)Encrypt all files in a directory
encryptFilepath, key, shred (bool), remember (bool)Encrypt a file
endCallEnd an active phone call
flashtext, long (bool)Show a flash/toast message
getLocationsource (gps|net|any), keepTracking (bool), timeout (int; default 60)Get device location; resolves to location output variables
getVoiceprompt, model (free|web; default free), maxResults (int; default 20), timeout (int; default 60)Capture voice input via speech recognition
goHomepage (int)Go to a home screen page
httpRequestmethod, url, headers, query, body, fileToSend, fileToSave, timeout (int), trustAnyCertificate (bool), autoRedirect (bool), cookies (bool), structureOutput (bool)Perform an HTTP request
isProfileActivenameResolves to "true" or "false" for the named profile
launchAppapp, data, excludeFromRecent (bool)Launch an installed app
listFilesdir, match, hidden (bool), root (bool)List files in a directory
mediaControlcmd (next|pause|previous|toggle|stop|play)Send a media control command
musicBacksecs (int)Rewind music playback
musicPlayfile, start (int), loop (bool), stream (call|system|ringer|media|alarm|notification; default media), continue (bool)Play a music file
musicSkipsecs (int)Skip forward in music playback
musicStopStop music playback
parseFormatDateTimeinputType (int), input, inputFormat, inputSeparator, outputFormat, outputSeparator, allDetails (bool)Parse and format a date/time string
readFilepathRead the contents of a file
reboottype (normal|recovery|bootloader|shutdown; default normal)Reboot the device
recordAudiopath, source (def|mic|callout|callin|call), codec (amrn|amrw|aac), format (mp4|3gpp|amrn|amrw)Start audio recording
recordAudioStopStop audio recording
runShellcmd, root (bool), timeout (int; default 60)Run a shell command; resolves to { stdout, stderr, result }
saytext, voice, stream, pitch (int), speed (int), network (bool), respectFocus (bool)Speak text aloud via TTS
scanMediapathTrigger a media scan for a file or directory
sendIntentaction, package, class, target (receiver|activity|service), category, data, mime, extra1, extra2, extra3Send an Android Intent
sendSmsmessage, number, store (bool)Send an SMS message
setAirplaneModeon (bool)Enable or disable airplane mode
setAirplaneRadiosradios (comma-separated: bt, wimax, wifi, nfc, cell)Set which radios remain on in airplane mode
setAlarmmessage, hour (int), minute (int), confirm (bool)Set an alarm
setAlarmVolumelevel (int), show (bool), sound (bool)Set alarm volume
setAutoBrightnesson (bool)Enable or disable automatic brightness
setAutoSyncon (bool)Enable or disable auto-sync
setBluetoothon (bool)Enable or disable Bluetooth
setBluetoothIdnameSet the Bluetooth device name
setBtVoiceVolumelevel (int), show (bool), sound (bool)Set Bluetooth voice volume
setCarModeon (bool)Enable or disable car mode
setClipboardtext, append (bool)Set the system clipboard text
setDisplayAutoRotateon (bool)Enable or disable automatic screen rotation
setDisplayTimeouthours (int), mins (int), secs (int)Set the screen-off timeout
setDtmfVolumelevel (int), show (bool), sound (bool)Set DTMF tone volume
setHapticFeedbackon (bool)Enable or disable haptic feedback
setInCallVolumelevel (int), show (bool), sound (bool)Set in-call volume
setKeykey, phraseStore an encryption passphrase in a named slot
setMediaVolumelevel (int), show (bool), sound (bool)Set media volume
setMicMuteon (bool)Mute or unmute the microphone
setMobileDataon (bool)Enable or disable mobile data
setNavigationBarposition (left|center|right)Set the navigation bar layout position
setNightModeon (bool)Enable or disable night mode (dark mode)
setNotificationVolumelevel (int), show (bool), sound (bool)Set notification volume
setProfileStatusname, enable (bool)Enable or disable a profile by name
setRingerVolumelevel (int), show (bool), sound (bool)Set ringer volume
setSilentModemode (off|vibrate|on)Set the ringer/silent mode
setSoundEffectson (bool)Enable or disable sound effects
setSpeakerphoneon (bool)Enable or disable the speakerphone
setStatusBaron (bool)Show or hide the status bar
setStayOnmode (never|ac|usb|any)Set the stay-on-while-plugged-in policy
setSystemVolumelevel (int), show (bool), sound (bool)Set system volume
setUsbTetheron (bool)Enable or disable USB tethering
setWallpaperpathSet the home/lock screen wallpaper
setWifion (bool)Enable or disable Wi-Fi
setWifiTetheron (bool)Enable or disable Wi-Fi tethering
settingsnameOpen an Android settings screen by name
shutdownShut down the device
stopLocationsource (gps|net|any)Stop location tracking
systemLockLock the device screen
takeCallAnswer an incoming phone call
takePhotocamera (int; 0=back, 1=front), path, resolution (e.g. 1920x1080), insertGallery (bool)Take a photo with the device camera
typetext, repeats (int)Type text into the focused element
unzippath, deleteZip (bool)Unzip a zip archive
variableConvertvalue, mode (one of: byteToKbyte, byteToMbyte, byteToGbyte, datetimeToSec, secToDatetime, secToDatetimeM, secToDatetimeL, htmlToText, celsToFahr, fahrToCels, centToInch, inchToCent, metreToFeet, feetToMetre, kgToPound, poundToKg, kmToMile, mileToKm, urlDecode, urlEncode, binToDec, decToBin, hexToDec, decToHex, base64encode, base64decode, toMd5, toSha1, toLowerCase, toUpperCase, toUpperCaseFirst)Convert a Tasker variable's value
vibratetime (int, ms)Vibrate the device for a duration
vibratePatternpattern (e.g. 0,500,100,500)Vibrate in a pattern
writeFilepath, text, append (bool)Write text to a file
zippath (comma-separated paths), deleteOriginal (bool), level (int, 0–9)Zip files into an archive

No actions match your filter.