To check for KS in your stomach and intestines, your health care provider may perform a gastrointestinal endoscopy. This is a procedure that uses an endoscope to examine the inside of the body.