Diagnosis typically involves a combination of imaging studies and biopsy. CT scans, MRI, and endoscopic ultrasound are commonly used to visualize the tumor. A definitive diagnosis requires a biopsy, where a sample of the tumor tissue is examined under a microscope. Molecular testing for KIT and PDGFRA mutations is also important to guide treatment.