Capsule endoscopy is a way to record images of the digestive tract for use in medicine. The capsule is the size and shape of a pill and contains a tiny camera. After a patient swallows the capsule, it takes pictures of the inside of the gastrointestinal tract. The primary use of capsule endoscopy is to examine areas of the small intestine that cannot be seen by other types of endoscopy such as colonoscopy or esophagogastroduodenoscopy (EGD). This type of examination is often done to find sources of bleeding or abdominal pain.