switch_stop_session
Stop debugging Nintendo Switch executables and disconnect from Yuzu emulator or hardware via GDB stub.
Instructions
Stop the gdb-multiarch session and disconnect from Yuzu.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/gdb_multiarch_mcp/server.py:109-117 (handler)The actual handler function that stops the session and nullifies the global session variable.
def _stop_session() -> dict: """Stop the current session if one exists.""" global _session with _session_lock: if _session is None: return {"status": "error", "message": "No active session"} result = _session.stop() _session = None return result - src/gdb_multiarch_mcp/server.py:442-443 (registration)The dispatch logic that calls the stop_session handler.
elif name == "switch_stop_session": result = _stop_session() - src/gdb_multiarch_mcp/server.py:222-226 (registration)Registration of the switch_stop_session tool.
Tool( name="switch_stop_session", description="Stop the gdb-multiarch session and disconnect from Yuzu.", inputSchema=NO_ARGS_SCHEMA, ),