A design for dynamically adjusting parameters applied to asurgical instrument, such as an ocular surgical instrument, is presented.The method includes detecting surgical events from image data collectedby a surgical microscope focused on an ocular surgical procedure, establishinga desired response for each detected surgical event, delivering thedesired response to the ocular surgical instrument as a set of softwareinstructions,and altering the surgical procedure based on the desired responsereceived as the set of software instructions.