evaluate_on_call_frame
Evaluate JavaScript expressions within a paused call frame to inspect local variables and the call stack during debugging. Requires an active breakpoint; returns expression results with type and value.
Instructions
Evaluates JavaScript expressions within the scope of a paused call frame, accessing local variables and call stack. Side effects: read-only by default; can modify state if expression includes mutations. Prerequisites: requires debugger to be paused at a breakpoint with active call frame. Returns: expression result with type and value. Use this to inspect variables and call stack during debugging. Alternatives: 'evaluate_js' for global scope evaluation, 'step_over' to advance without evaluation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | No | The Tab ID of the target tab. Omit to use the active tab. | |
| expression | Yes | JavaScript expression to evaluate in call frame scope. Constraints: valid JavaScript accessing local/closure variables. Interactions: requires active paused debugger session; has access to function parameters and local variables. Defaults to: None (required). | |
| instance_id | No | Chrome instance id from open_instance/list_instances. Omit for the default instance. |