An endoscope is a small lighted tube with a tiny video camera at the end. By inserting this into your oesophagus, your doctor can view the swelling or irritation of the tissue lining in the oesophagus and suggest appropriate treatment.