shell.run
Run shell commands or multi-line scripts on an Android device via adb, with optional root access. Use it to execute scripts without quote or pipe escaping issues.
Instructions
执行 shell(root=true 走 su,设备需已 root);风险命令需 allow_risk。script=多行脚本模式:base64 推到手机 /data/local/tmp 执行(规避嵌套引号/管道符转义地狱),与 cmd 二选一
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cmd | No | ||
| root | No | ||
| script | No | 多行 shell 脚本(推荐:可含管道/引号) | |
| allow_risk | No |