A grammar of graphical actions