manage_platform_logs
Start or stop mobile log capture for Android/iOS. On Android, combine deviceId and packageId to isolate your app's logs, eliminating system noise.
Instructions
Manually start/stop platform log capture (optional - auto-starts with bundler). On Android, pass both deviceId and packageId to enable PID-based filtering — this captures only your app's logs and eliminates all system/GMS noise. Without packageId, falls back to ReactNative/AndroidRuntime tag filtering which may include unrelated system warnings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Start or stop log capture | |
| deviceId | No | Device/emulator ID (from device_list). Required for per-app PID filtering on Android. | |
| platform | Yes | Platform to capture logs from | |
| logFilter | No | Optional raw log filter (adb logcat tags on Android, predicate on iOS) | |
| packageId | No | Package ID to filter logs (e.g. 'com.example.app'). On Android, used with deviceId for precise PID-based filtering that eliminates system noise. | |
| projectPath | No | Optional path to project root | |
| showTerminal | No | Open the logs in a new terminal window (default true) |