layout.struct.field.add
Adds a field to a structure at a chosen offset or appends it, enabling precise memory layout definition.
Instructions
Add a field to a structure at a specific offset or append position.
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>",
"data_type": "<data_type>"
},
"name": "layout.struct.field.add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| length | No | ||
| offset | No | ||
| comment | No | ||
| data_type | Yes | ||
| field_name | No | ||
| session_id | Yes | ||
| struct_name | No | ||
| struct_path | No |