stop_logcat_capture
Stop a running logcat capture on an Android device and return the collected logs, filtered by priority, tag, or substring, with a configurable tail limit to avoid token overflow.
Instructions
Stop the running logcat capture and return what was collected since start, optionally filtered by a case-insensitive substring, a minimum priority (V/D/I/W/E/F), and/or tags (OR'd). Output is capped to the last 500 lines by default (override with tail) so a long capture doesn't blow the token budget — narrow with the filters first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Keep only lines whose log tag contains one of these (case-insensitive, OR'd). | |
| tail | No | Keep only the last N lines after filtering (the most recent, where a crash usually is). Default 500; pass a larger number for more, or a huge one to effectively disable the cap. | |
| filter | No | Case-insensitive substring to keep. | |
| redact | No | Mask common secrets (token, password, authorization, api key, secret) before returning captured lines. | |
| serial | No | Target device serial (adb -s). Optional when exactly one device is attached. | |
| priority | No | Minimum priority to keep: V, D, I, W, E, or F. |