`xschem` commands can be attached as a 'tclcommand...
# xschem
s
xschem
commands can be attached as a 'tclcommand' to symbols, so by ctrl-clicking on it an action is executed. For example if you attach this attribute to an instance:
tclcommand="xschem netlist; xschem simulate"
by ctrl-clicking on the instance xschem does a netlist of current schematic and invoke the simulator