Methods and devices are provided for robotic surgery, and in particular for controlling various motions of a tool based on visual indicators. In general, a surgical tool can include an elongate shaft and an end effector coupled to a distal end of the elongate shaft and including first and second jaws. The tool can have at least one visual indicator disposed thereon and configured to indicate a size, position, or speed of movement of the tool or components of the tool.