Error Formatting API Documentation
function
from mcp_use.errors.error_formatting import format_error
errorExceptionrequired The exception to format. contextrequired Parameter value
returnsdictA dictionary containing the formatted error.
def format_error(error: Exception, context):
Was this page helpful?