infer_struct
Samples memory objects at a given address and stride to infer their field layout, classify pointer and int32 fields, and print a C struct declaration.
Instructions
Infer a field layout from sampled values and print a C declaration.
count objects at stride are compared: a qword that is a mapped address
every time is reported as a pointer, one whose high dword is always zero as
int32, and fields that differ between objects are marked varies.
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": {
"va": "<va>"
},
"name": "infer_struct"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| va | Yes | ||
| pid | No | ||
| size | No | ||
| align | No | ||
| count | No | ||
| stride | No | ||
| session | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |