Variables in a frame
get_scopesInspect all variables visible in a stack frame—locals, closures, blocks, modules, and this—with values; expand object refs via get_properties to debug Node.js execution.
Instructions
All variables visible in a frame (local, closure, block, module scopes, plus this), with values. Object values come with a ⟨ref⟩ you can expand with get_properties.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_scopes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | No | Frame index from get_stack; 0 is the innermost. | |
| include_global | No | Also dump the global scope (large). |