get_bundle_errors
Retrieve Metro bundling errors during React Native app compilation, with automatic screenshot fallback when no errors are captured via CDP.
Instructions
Retrieve captured Metro bundling/compilation errors. These are errors that occur during the bundle build process (import resolution, syntax errors, transform errors) that prevent the app from loading. If no errors are captured but Metro is running without connected apps, automatically falls back to screenshot+OCR to capture the error from the device screen.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxErrors | No | Maximum number of errors to return (default: 10) | |
| platform | No | Platform for screenshot fallback when no errors are captured via CDP. Required to enable fallback. | |
| deviceId | No | Optional device ID for screenshot fallback. Uses first available device if not specified. |