get_global_variable_value_by_name
Retrieve compile-time known values of global variables in binary analysis, providing direct access to variable data without manual memory reading.
Instructions
Read a global variable's value (if known at compile-time)
Prefer this function over the `data_read_*` functions.
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": {
"variable_name": "<variable_name>"
},
"name": "get_global_variable_value_by_name"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variable_name | Yes | Name of the global variable |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |