as_adb_logcat
Retrieve a static dump of recent Android device logs with configurable line count, filter spec, optional buffer clear, and grep. Returns log text and line count.
Instructions
Dump a snapshot of the most recent device logs (non-streaming).
Args: params (LogcatInput): serial, lines, filter_spec, clear_first, grep.
Returns: str: JSON with 'log' (the captured text) and 'line_count'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |