android-diag
Capture bug reports or dump heap data from Android devices using this diagnostic tool. Specify output paths, include screenshots, and set timeouts for efficient device analysis.
Instructions
Perform diagnostic operations like capturing bug reports or heap dumps.
Args: ctx: MCP Context. serial: Device serial number. action: The diagnostic action to perform. output_path: Optional. Path to save the output file. For bugreport: host path for adb to write the .zip. If empty, a temp file is used & summarized. For dump_heap: local path to save the .hprof. If empty, a temp file is used. include_screenshots: For CAPTURE_BUGREPORT. Default True. package_or_pid: For DUMP_HEAP. App package name or process ID. native: For DUMP_HEAP. True for native (C/C++) heap, False for Java. Default False. timeout_seconds: Max time for the operation. If 0, action-specific defaults are used (bugreport: 300s, dump_heap: 120s).
Returns: A string message indicating the result or path to the output.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
action | Yes | ||
include_screenshots | No | ||
native | No | ||
output_path | No | ||
package_or_pid | No | ||
serial | Yes | ||
timeout_seconds | No |