, xschem adds a 'xschem' tcl extension command (you can use it from the xschem shell) that can do many actions on xschem internal data (get/set values etc), the attributes are documented here
(general and global attributes) here
(symbols) and here
(instances). For the
tcl command i have to prepare a comprehensive documentation.