Skip to main content
Glama

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
NameRequiredDescriptionDefault
session_idYesID of the debugging session. The session must be paused.
call_frame_idYesID of the call frame. Obtain this from get_call_stack.
scope_indexNoIndex of the scope in the scope chain. 0 is the local scope, higher indices are closure and global scopes. Defaults to 0.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/johngrimes/mcp-js-debugger'

If you have feedback or need assistance with the MCP directory API, please join our Discord server