get_variable
Retrieve PHP variable values during debugging sessions, supporting nested properties with PHP syntax for detailed inspection.
Instructions
Get a specific variable by name, including nested properties. Use PHP syntax for nested access (e.g., '$user->name', '$array[0]', '$obj->items[2]->value')
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Variable name with $ prefix (e.g., '$user', '$data["key"]', '$obj->property') | |
| context_id | No | Context ID | |
| stack_depth | No | Stack frame depth | |
| max_depth | No | Maximum depth for nested properties | |
| session_id | No | Session ID |