gc_memory_write_struct
Pack values with a Python struct format and write the resulting bytes to GameCube memory; returns the number of bytes written.
Instructions
Pack values with a Python struct format and write them to memory.
fmt is a Python :mod:struct format string (see
gc_memory_read_struct for the byte-order notes). values is a list of
the values to pack, in format order, e.g. for ">12f" pass 12 floats.
Returns the number of bytes written.
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>",
"values": "<values>"
},
"name": "gc_memory_write_struct"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fmt | Yes | ||
| values | Yes | ||
| address | Yes | ||
| instance_id | Yes |