The functionality of a sharp probe relies on its ability to maintain a very fine point of contact with the surface being examined. In AFM, the probe scans the surface by maintaining a constant force between the tip and the sample, which allows for topographical mapping. In STM, the probe maintains a constant tunneling current between the tip and the conductive sample surface, which provides atomic-level resolution.