Diagnosis of GI tract cancers typically involves a combination of medical history, physical examination, laboratory tests, imaging studies, and biopsy. Techniques such as endoscopy (including colonoscopy and upper GI endoscopy), CT scans, MRI, and PET scans are commonly used to visualize the digestive tract and identify abnormalities. Biopsies are performed to obtain tissue samples for histological examination to confirm the diagnosis.