switch_localize
Convert absolute addresses or register values to offsets relative to the main executable's base address for debugging Nintendo Switch applications in GDB.
Instructions
Convert an absolute address or register value to an offset relative to the base of main. Example: address '$x0' or '0x8012345'.
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": {
"address": "<address>"
},
"name": "switch_localize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Absolute address or register name (e.g. '0x8012345' or '$x0') |