Skip to content

cdp_evaluate

CAUTION: Executes arbitrary JavaScript directly in the Hermes runtime with no sandboxing. Use only when no specific tool covers the need. Has a 5-second timeout. The Hermes dev runtime has NO Node require() — Metro bundles modules internally and only the live React tree is reachable. Use cdp_mmkv for storage R/W, cdp_dispatch for Redux/Zustand state changes, cdp_component_tree / cdp_store_state for introspection. Reach for raw evaluate only when no targeted tool fits.

NameTypeRequiredDefaultConstraintsDescription
expressionstringYesJavaScript expression to evaluate
awaitPromisebooleanNofalseWait for promise resolution
cdp_evaluate(expression: <string>)