gc_memory_read_struct
Read GameCube emulator memory at a given address and unpack it using a Python struct format, returning values in format order for interpreting binary game data.
Instructions
Read memory at address and unpack it with a Python struct format.
fmt is a Python :mod:struct format string, e.g. ">12f" for twelve
big-endian floats (a 3x4 transform matrix), ">II" for two big-endian
u32 values, or ">4h" for four big-endian s16 values.
GameCube is big-endian, so include a byte-order prefix in fmt: >
(big-endian, standard sizes) or ! (network order). If you omit it the
format uses the host's native byte order/sizes, which is almost never what
you want for a GameCube, so it is recommended to always prefix with >.
The result values is a list of the unpacked values in format order.
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": {
"instance_id": "<instance_id>",
"address": "<address>",
"fmt": "<fmt>"
},
"name": "gc_memory_read_struct"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fmt | Yes | ||
| address | Yes | ||
| instance_id | Yes |