In Situ AFM operates by scanning a sharp tip over the surface of a sample, generating high-resolution images while simultaneously applying different stimuli such as temperature, pressure, or chemical reactions. The AFM tip interacts with the surface forces, providing detailed information about the topography, mechanical properties, and other characteristics of the material.