get_local_variables
Retrieve local variables for the current debug stop to inspect runtime values. Pass exact names to fetch specific bindings and avoid mislabeling global scope.
Instructions
Get local variables for the shared inspection anchor. If the stopped thread is frameless, a sibling with policy-recognized user frames is preferred, adopted, and disclosed in note. At a breakpoint or step inside a frame the stack display hides as internal (a node_modules dependency), the anchor is that frame — the one the program stopped in — and note says so. A JavaScript frame with no Local/block scope returns empty with guidance instead of mislabeling Global bindings. Responses are size-guarded; pass names:[...] to fetch specific variables in full
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| names | No | Only return variables with these exact names (case-sensitive). Requested names missing from the scope are listed in the response's notFound. | |
| sessionId | Yes | ||
| includeSpecial | No | Include special/internal variables like this, __proto__, __builtins__, etc. Default: false |