Guidance from an in situ hot stage in TEM to synthesize magnetic metal nanoparticles from a MOF.