get_global_variable_value_by_name
Retrieve the compile-time value of a global variable in reverse-engineered code using its name. Ideal for efficient variable analysis in automated IDA Pro workflows.
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 |