The ability of mixotrophs to combine phototrophy and phagotrophy is now well recognized and found to have important implications for ecosystem dynamics. In this paper, we examine the dynamical consequences of the invasion of mixotrophs in a system that is a limiting case of the chemostat. The model is a hybrid of a competition model describing the competition between autotroph and mixotroph populations for a limiting resource, and a predator--prey-type model describing the interaction between autotroph and herbivore populations. Our results show that mixotrophs are able to invade in both autotrophic environments and environments described by interactions between autotrophs and herbivores. The interaction between autotrophs and herbivores might be in equilibrium or cycle. We find that invading mixotrophs have the ability to both stabilize and destabilize autotroph-herbivore dynamics depending on the competitive ability of mixotrophs. The invasion of mixotrophs can also result in multiple attractors.