android_shell
Run shell scripts in Termux to execute commands and capture stdout/stderr, enabling direct device control and automation.
Instructions
Execute a shell script in the user-installed Termux environment and return stdout/stderr. Requires explicit Termux RUN_COMMAND permission.
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": {
"script": "<script>"
},
"name": "android_shell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stdin | No | ||
| script | Yes | ||
| workdir | No | ||
| timeoutMs | No |