Skip to main content
Glama
sbergeron42

gdb-multiarch-mcp

by sbergeron42

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
NameRequiredDescriptionDefault
addressYesStart address for hex dump
sizeYesNumber of bytes to dump (hex)

Implementation Reference

  • 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)")
  • 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(),
    ),

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sbergeron42/gdb-multiarch-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server