live_struct_layout
Merge a function's field-access offsets with live object values to confirm used offsets and infer field types for a validated struct layout.
Instructions
Combine a function's field accesses with the live values at those offsets.
struct_layout knows which offsets exist and how wide the accesses are, but
not what is in them. infer_struct knows what is in them, but not which
offsets the code cares about. This runs both and merges them: every offset is
confirmed by code and typed by data, padding is dropped, a dword that reads as
a sane float in every sample is declared float, adjacent floats are grouped
into a vector, and offsets seen in only one of the two are listed separately
instead of being silently dropped.
key is a loaded image (found in any engine), function is any address
inside the function, and object_va is a live instance of the object that
function's first argument points at. session selects the live target; the
image does not have to live in that session, so a sample loaded from disk works
against whatever is attached.
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>",
"function": "<function>",
"object_va": "<object_va>"
},
"name": "live_struct_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| pid | No | ||
| size | No | ||
| align | No | ||
| count | No | ||
| stride | No | ||
| session | No | ||
| function | Yes | ||
| object_va | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |