An arthroscopy is a type of keyhole surgery used to diagnose and treat problems with joints. It's most commonly used on the knees, ankles, shoulders, elbows, wrists and hips. The equipment used during an arthroscopy is very small, so only small cuts in the skin are needed.