How do they know when to cut an episiotomy?

We don't. We have stopped generally cutting episiotomies because they do more harm than good. Few absolute indications for it remain, such as severe shoulder dystocia.