Skip to content

Error codes

Failures the model can act on come back as tool results with isError: true and a payload of { code, message, remediation, details? } (see spec 000). Codes are stable API.

CodeWhenTypical fix
IOS_UNAVAILABLEiOS operation but the simctl probe failed at startupInstall Xcode + simulators; restart the server
ANDROID_UNAVAILABLEAndroid operation without a working adbInstall the SDK / set ANDROID_HOME; restart the server
PROJECT_NOT_FOUNDNo react-native dependency found from the project rootRun from the app directory or pass --project-root
CodeWhenTypical fix
DEVICE_NOT_FOUNDUnknown device idlist_devices
DEVICE_NOT_BOOTEDOperation requires a running deviceboot_device
BOOT_TIMEOUTDevice not usable within timeoutSecondsRetry with a larger timeout
EMULATOR_BINARY_MISSINGBooting an AVD without the emulator installedInstall Android Emulator via SDK Manager
ARTIFACT_NOT_FOUNDappPath does not existCheck get_build_statusartifactPath
ARTIFACT_PLATFORM_MISMATCH.apk → iOS device or .app → AndroidMatch artifact to platform
INSTALL_FAILEDInstaller rejected the artifactDetails carry the installer message
APP_NOT_INSTALLEDLaunching an app that isn’t installedinstall_app first
SCREENSHOT_FAILEDCapture failedCheck the device is awake/booted
CodeWhenTypical fix
METRO_NOT_RUNNINGNo inspector on the Metro portStart Metro; check --metro-port
NO_TARGETSMetro up, no app runtime registeredOpen the app on a device
TARGET_AMBIGUOUSMultiple debuggable targetsPass targetId from list_runtime_targets
DEBUGGER_OCCUPIEDRN DevTools holds the single Hermes debugger slotClose DevTools, retry
INVALID_REGEXBad filter pattern in read_consoleFix the regex
EVALUATE_TIMEOUTPromise didn’t settle within timeoutMsRaise timeoutMs or simplify
EVALUATE_EXCEPTIONThe expression threwException text/stack in details
CodeWhenTypical fix
JOB_NOT_FOUNDUnknown/expired job id (ids don’t survive restarts)parse_build_log on the log file
PREBUILD_REQUIREDExpo project without native directoriesnpx expo prebuild
WORKSPACE_NOT_FOUNDNo .xcworkspace/gradlew where expectedCheck projectRoot; run run_pod_install
BUILD_ALREADY_RUNNINGSame platform+project already buildingPoll or cancel_build (job id in details)
POD_INSTALL_FAILEDCocoaPods failedDiagnostics in details
LOG_NOT_FOUND / LOG_TOO_LARGE / INVALID_INPUTBad parse_build_log inputPer the message

COMMAND_FAILED (a toolchain call failed in an unanticipated way — stderr included) and INTERNAL_ERROR (a bug in this server — please report it).