variables_get
Retrieve and recursively expand variables from a stack frame during debugging, controlling depth and child count.
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.
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": "variables_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Recursive expansion depth. 1 = just the top-level variables (default). 2 = expand one level into compound types. Higher = deeper. | |
| frameId | No | Frame id from stacktrace_get. Defaults to the topmost frame of the last-stopped thread. | |
| maxChildren | No | Maximum children to return at each level. Default 50. |