How to set tool options (for example, "Sample" option of eyedropper)

You should be able to figure out by checking the solution of this topic