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. Prefer cdp_component_tree, cdp_store_state, and other targeted tools over raw evaluate.

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