Endoscopy is a special technique for looking inside the body. The doctor uses an endoscope during the procedure. An endoscope is a long, thin, flexible, fiberoptic tube that transmits pictures.