Controlling the scan size involves adjusting the scanning parameters of the microscope. In AFMs, this can be done by changing the piezoelectric scanner settings, which control the movement of the probe. In SEMs, the scan size is adjusted by modifying the electron beam's scanning area. Advanced software interfaces provide precise control over these parameters, ensuring optimal scan sizes for different applications.