A narrow flexible tube (an endoscope) is. gently passed down your throat while you are sedated. This tube contains a very small camera which transmits light and images back. to the doctor. Sometimes this is used to diagnose a digestive problem you may be having, to remove a foreign object, or a polyp, to stop any.