The ductoscopy procedure is performed by applying local anesthesia to the nipple area.