switch_xxd
Generate a hex dump of memory at a specified address to analyze Nintendo Switch executable data during debugging sessions.
Instructions
Print a hex dump (xxd-style) of memory at the given address.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Start address for hex dump | |
| size | Yes | Number of bytes to dump (hex) |
Implementation Reference
- src/gdb_multiarch_mcp/server.py:560-562 (handler)The handler for switch_xxd which executes a command via the session object.
elif name == "switch_xxd": a = XxdArgs(**arguments) result = session.execute_command(f"xxd {a.address} {a.size}") - The input argument schema for switch_xxd.
class XxdArgs(BaseModel): address: str = Field(..., description="Start address for hex dump") size: str = Field(..., description="Number of bytes to dump (hex)") - src/gdb_multiarch_mcp/server.py:416-420 (registration)Registration of the switch_xxd tool in the list of available tools.
Tool( name="switch_xxd", description="Print a hex dump (xxd-style) of memory at the given address.", inputSchema=XxdArgs.model_json_schema(), ),