Read a logcat snapshot
logcat_snapshotDump the current Android logcat buffer from one device, optionally filtered by log tag. Returns bounded output; use stream tools for continuous logs.
Instructions
Dump the current logcat buffer (adb logcat -d) from one device, optionally filtered to a log tag. Bounded output; use the stream tools when you need to watch logs over time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device serial from list_devices; optional when exactly one device is connected. | |
| max_lines | No | Maximum lines to return, most recent kept (default 200, max 5000). | |
| timeout_ms | No | Timeout in milliseconds (default 30000). | |
| filter_spec | No | logcat filter spec, e.g. "AndroidRuntime:E *:S" or "ActivityManager:I *:S". Space separated, passed to adb logcat as-is. |