layout.struct.bitfield.add
Insert a bitfield into an existing structure at a specified byte and bit offset, defining its data type and bit size for accurate reverse-engineering layouts.
Instructions
Insert a bitfield into a structure at a byte and bit offset.
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": {
"session_id": "<session_id>",
"byte_offset": "<byte_offset>",
"byte_width": "<byte_width>",
"bit_offset": "<bit_offset>",
"data_type": "<data_type>",
"bit_size": "<bit_size>"
},
"name": "layout.struct.bitfield.add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | ||
| bit_size | Yes | ||
| data_type | Yes | ||
| bit_offset | Yes | ||
| byte_width | Yes | ||
| field_name | No | ||
| session_id | Yes | ||
| byte_offset | Yes | ||
| struct_name | No | ||
| struct_path | No |