A thin flexible tube which uses a lens or miniature camera to view various areas of the gastrointestinal tract. The performance of an exam using an endoscope is referred by the general term endoscopy.
Diagnosis through biopsies or other means and therapeutic procedures can be done with these instruments. (Source)