Endoscopy is a simple procedure that uses a thin, flexible tube with a camera to look inside the body. It helps doctors check for problems without the need for major surgery.