Palladium nanoparticles encapsulated in a metal-organic framework as efficient heterogeneous catalysts for direct C2 arylation of indoles.