evaluate_at_frame
Evaluate JavaScript in a paused call frame to inspect local variables, closures, and this during debugging. Use it when execution is stopped to get readable previews of values at that exact point.
Instructions
Evaluate a JavaScript expression in the scope of a paused call frame — it reads local variables, closure variables and the current this, which evaluate_js cannot. Only works while execution is paused: when it is not, this returns an error rather than silently falling back to global scope. Results come back as a preview — class name plus a first level of properties, marked … where Chrome truncated it — readable, not parseable as the value. Use get_debugger_state to find frame indices.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | JS expression to evaluate | |
| frameIndex | No | Call frame index (0 = top frame); use get_debugger_state to find available frames |