Skip to main content
Glama

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
NameRequiredDescriptionDefault
maxErrorsNoMaximum number of errors to return (default: 10)
platformNoPlatform for screenshot fallback when no errors are captured via CDP. Required to enable fallback.
deviceIdNoOptional device ID for screenshot fallback. Uses first available device if not specified.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/igorzheludkov/metro-logs-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server