In one example, a method for performing a medical procedure includes receiving a command to initiate tissue sampling with a surgical instrument at a target location, retrieving a predefined dynamic trajectory for tissue sampling from a memory device, and moving the surgical instrument according to the predefined dynamic trajectory to sample tissue at the target location.