switch_replace
Replace instructions at specific offsets in Nintendo Switch executables to modify code behavior during debugging with gdb-multiarch.
Instructions
Replace the instruction at an offset from main with a new instruction. Offset and instruction are both hex values.
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": {
"offset": "<offset>",
"instruction": "<instruction>"
},
"name": "switch_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | Yes | Offset into main executable (hex) | |
| instruction | Yes | New instruction as a 32-bit hex value (e.g. '0xD503201F') |