android-shell
Execute shell commands on Android devices to retrieve system information, run diagnostics, or perform automated tasks. Supports limiting output lines and size for efficient responses.
Instructions
Run a shell command on the device.
Args: serial: Device serial number command: Shell command to run max_lines: Maximum lines of output to return (default: 1000) Use positive numbers for first N lines, negative for last N lines Set to None for unlimited (not recommended for large outputs) max_size: Maximum output size in characters (default: 100000) Limits total response size regardless of line count
Returns: Command output
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | Yes | ||
| command | Yes | ||
| max_lines | No | ||
| max_size | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |