get_variables
Retrieve variables from a debug session by scope reference. Oversized values are truncated; fetch specific variables by name for full access.
Instructions
Get variables (scope is variablesReference: number). Responses are size-guarded: oversized values are cut (truncated:true) and very large scopes return a capped list with a truncation notice — 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. | |
| scope | Yes | The variablesReference number from a StackFrame or Variable | |
| sessionId | Yes |