What is this tool called and what is it used for?
These appear to be snap-ring pliers.
The pins at the nose go into the holes in the snap-ring, then you squeeze to compress the ring to release it from its groove, and flip the lock to hold the squeeze so the ring doesn't expand, rip the pliers from your hand and launch the ring to wherever it is that small parts go to die.