Light triggers atomic shifts in asymmetric 2D semiconductors, tuning their optical response. This enables compact, energy-efficient photonic chips and sensitive sensors.