A lower GI endoscopy is a diagnostic procedure used by your doctor to inspect the inside of your rectum and colon. .