struct_layout
Infer candidate struct layouts from a function's memory operands, turning observed offsets and access widths into field hypotheses you can confirm against live memory.
Instructions
Infer candidate struct layouts from the memory operands a function uses.
Every [rcx+0x10] observed becomes a field hypothesis at offset 0x10,
sized by the access width. Offsets are relative and the base is a role
(arg0/arg1/...) or a register, because nothing proves which object the
register holds. Confirm hypotheses with read_typed against live memory.
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": {
"key": "<key>",
"va": "<va>"
},
"name": "struct_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| va | Yes | ||
| key | Yes | ||
| limit | No | ||
| session | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |