shell_execute
Run arbitrary Android shell commands, optionally as root, and capture exit code, stdout, stderr, timeout, and truncation for reliable device automation.
Instructions
Run an arbitrary Android shell command, optionally su uid=0. Returns real exit_code/stdout/stderr/timeout/truncation. Device-side timeout when supported; never invokes a host shell.
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": "shell_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | ||
| command | Yes | ||
| timeout | No | ||
| max_output_bytes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||