An endoscopy may be used to examine larynx, esophagus, nasal cavity and nasopharynx. During an endoscopy, the health care provider uses a thin, lighted tube called an endoscope to examine areas inside the body.