get_scope_variables
Retrieve variables from a specific scope during JavaScript debugging to inspect local, closure, or global variables when execution is paused.
Instructions
Retrieves all variables in a specific scope. Use this to see all local variables, closure variables, or global variables at a given point in execution.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ID of the debugging session. The session must be paused. | |
| call_frame_id | Yes | ID of the call frame. Obtain this from get_call_stack. | |
| scope_index | No | Index of the scope in the scope chain. 0 is the local scope, higher indices are closure and global scopes. Defaults to 0. |