Query a dumpsys service
dumpsys_queryRead curated Android system service dumps for battery, activity, window, and connectivity, with a 64 KB output cap and extra args to narrow large results.
Instructions
Read a curated Android system service dump (dumpsys <service> [args...]): "battery" for charge/level, "activity" for tasks and activities, "window" for windows and display state, "connectivity" for network state. Output can be huge — "activity" especially — so it is capped (64 KB maximum) with a head+tail truncation marker where bytes were dropped; pass extra_args to narrow it (e.g. "activities" or "windows"). Other dumpsys services are intentionally not exposed; use shell for those.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device serial from list_devices; optional when exactly one device is connected. | |
| service | Yes | Curated service to dump: "battery", "activity", "window" or "connectivity". | |
| extra_args | No | Optional arguments appended after the service, e.g. "activities com.example.app" or "windows"; token-split on whitespace and quoted for the device shell. | |
| timeout_ms | No | Timeout in milliseconds (default 30000). |