var_view
Inspect C/C++ variables, structures, arrays, and expressions with full expansion of nested fields and pointer targets.
Instructions
View a C/C++ variable, structure, array, or expression with full expansion.
Shows the complete content of complex data types including nested structs, arrays, and pointer targets. Much more detailed than read_variable.
The target must be halted.
Args: expression: C variable name, struct member, array, or expression (e.g., "myStruct", "array[0]", "pTask->state", "%SpotLight")
Returns: Formatted variable view showing all fields and values
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"expression": "<expression>"
},
"name": "var_view"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |