onToolError

Runs when a tool throws; may swallow the error by returning a result.