Read Scalar
read_scalarRead scalar integers with an explicit byte width from one or more addresses, optionally as signed, to inspect values during reverse engineering.
Instructions
Read scalar integer(s) with explicit width.
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": {
"addr": "<addr>"
},
"name": "read_scalar"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| addr | Yes | Address(es) - single or comma-separated | |
| width | No | Scalar width in bytes: 1, 2, 4, or 8 | |
| signed | No | Whether to decode as signed integer | |
| timeout | No | Timeout in seconds | |
| instance_id | No | REQUIRED whenever more than one database is open (from open_database's result or list_databases()); optional only while exactly one instance is live. |