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