Larotrectinib functions as a tyrosine kinase inhibitor. It selectively binds to the tropomyosin receptor kinase (TRK) proteins encoded by NTRK genes, blocking their ability to activate signaling pathways that lead to cell proliferation. This targeted action helps in stopping the growth of cancer cells with minimal impact on normal cells.