phone_shell
Run Android shell commands on the phone as the shell user to inspect settings, logs, packages, and /sdcard files; returns exit code and output after user approval.
Instructions
(Needs Linux tools in this chat, and the user's switch Settings > Background mode > Phone commands) Run a command line on the phone itself, as Android's shell user (what adb shell gives): pm, am, settings, dumpsys, logcat -d, getprop, files under /sdcard. Returns its exit code and output (the last 20,000 characters). The user approves each command on a card first, unless they turned that off. This is not Buddy's Linux: your own shell is for files there. To use the screen, use the phone tools (tap, type_text, ...), not input. Never use it to get around an approval card, a BLOCKED answer or a step the user has to do themselves.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "<command>"
},
"name": "phone_shell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The command line (run by sh -c) | |
| timeout_s | No | Default 60, max 300 |