Encapsulation of metal nanoparticles at the surface of a prototypical layered material.