Direct observation and catalytic role of mediator atom in 2D materials