Many good methods mentioned above. One thing I don’t think anyone has said yet: If you’re going to pull an ETT deep, first make sure you give a vigorous suction, then jiggle the tube. You’re looking to see if the stimulation makes the kid breath hold, or if they keep breathing regularly. Then take the cuff down, and look at the monitor again. If the kid breath holds, you’re at risk for spasm when you pull the tube; you either want to deepen them more, or let them wake up. If they continue to breathe regularly through all of this, then you’re good to go. Yank that sucker and do your thing.
Of course, this won’t prevent a laryngospasm 5 minutes later when they’re getting jostled around in the PACU... For successful deep pedi extubations, you really need peri-op/PACU staff who are familiar with the technique. But, doing the above will help avoid 99% of laryngospasms that happen immediately upon extubation due to patient not being deep enough. It takes more anesthesia than you might think- I’ve had kids laryngospasm after pulling the tube while breathing 3% sevo!