gb_memory_diff
Compare memory between two Game Boy save states to return changed bytes with addresses and old/new values.
Instructions
Compare memory between two save states and return changed bytes.
Loads each state, dumps the requested memory regions, restores the
original emulator state, and diffs the two dumps. Returns a list of
``(address, old_value, new_value)`` changes.
The optional *regions* parameter accepts region names (e.g.
``["WRAM", "HRAM"]``). Prefix matching is supported: ``"WRAM"``
matches both WRAM0 and WRAMX. Defaults to WRAM0 + WRAMX + HRAM.
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": {
"state_id_a": "<state_id_a>",
"state_id_b": "<state_id_b>"
},
"name": "gb_memory_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| regions | No | ||
| state_id_a | Yes | ||
| state_id_b | Yes |