class_layout
Deduce a C++ class's fields, methods and vftable from how its methods access the object, then save the result as a struct.
Instructions
Infer a C++ class's fields, methods and vftable from how its methods use the object: offset, width, reads, writes. Use it on an unknown class; for a known layout use set_type. apply=Name saves it as a struct (dry run until dry_run=false).
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": {
"class": "<class>"
},
"name": "class_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | Struct name to define the layout as. | |
| class | Yes | Class name or a method address. | |
| dry_run | No | Preview only; false applies. |