kb_define_struct
Defines a named, unique data structure with typed fields, offsets, and sizes for documenting Game Boy ROM memory layouts in the knowledge base.
Instructions
Define a data structure with typed fields.
Each field dict must have: name, offset, type, size.
Optional: comment. Valid types: u8, u16, s8, s16, bool, bytes.
Struct names must be unique — duplicates are rejected.
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": {
"name": "<name>",
"fields": "<fields>"
},
"name": "kb_define_struct"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| fields | Yes | ||
| comment | No |