Mew. Work. Docs

Built-in tools›Remote screens

Android shell

android_shell
Group
Remote screens
Turned on by
Its own switch on the Tools page of Conversation settings.
Approval
Reviewed: writes and open-ended actions ask for approval unless the security level or an earlier “Always allow” covers them.
Profile key
tool.android_shell.description

Runs one command in the shell of an Android device connected as a remote-control screen, and returns its exit status, standard output and standard error.

It runs as adb shell's shell user, not root, for what the other Android tools don't cover, such as am, pm, settings, dumpsys and getprop. The command must end by itself within the timeout: one that streams, such as top, is cut off.

Parameters

ParameterTypeDetails
command required
Command
stringThe shell command line.
serverId
Server ID
stringDefault: the Android device the preview pane shows, else the only one connected.
timeout
Timeout (ms)
integer1000-20000 ms, default 10000.
Default 10000