The vmd module contains a very simple client that can connect to a locally running server process in VMD. This allows running VMD Tcl commands remotely. See VMD Tcl Text Commands for all available commands.
The vmd module is independent from gromacs and distribute for convenience. It can be used to implement additional visualization and analysis tasks.