Take action from extended event?
Erin Stellato's Stairway to Extended Events is a good starting point here (it's behind a registration wall, but it's worth it.) She explains how you can use the SSMS GUI to create an Extended Events session that will trigger a dump, for example.

Understand that taking an action like creating a dump will be very performance-intensive.