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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | ||
| command | Yes | ||
| timeout | No | ||
| max_output_bytes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||