variables_get
Get variables from a stack frame during debugging, with options to expand nested values and limit children per level.
Instructions
Get variables for a stack frame. Defaults to the topmost frame of the last-stopped thread. Recursively expands compound values up to depth levels and truncates each level at maxChildren.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frameId | No | Frame id from stacktrace_get. Defaults to the topmost frame of the last-stopped thread. | |
| depth | No | Recursive expansion depth. 1 = just the top-level variables (default). 2 = expand one level into compound types. Higher = deeper. | |
| maxChildren | No | Maximum children to return at each level. Default 50. |