What role does the magnetic field of young stars play in the formation of planets around it? And what more will we learn with space telescopes like James Webb?