Table of Contents

Method LogException

Namespace
GrindFest.GameMaster.Helpers
Assembly
GrindFest.dll

LogException(Exception, string, object)

Logs an exception to Unity console with detailed information. Use this for void-returning tools that cannot return JSON error responses. Recursively logs all inner exceptions.

public static void LogException(Exception ex, string toolName, object context = null)

Parameters

ex Exception

The exception to log

toolName string

Name of the MCP tool that encountered the error

context object

Optional additional context (e.g., parameter values)