It's worth noting that the function winInitNotifyIcon in file xorg-server/hw/xwin/wintrayicon.c initializes the tool tip text. Code in this function could be added to write this string to a file, which then can be read from another program. Although this would work in some cases, users lacking privileges to create directories and files in certain environments may present a problem. A cleaner and more universal implementation would be the accessibility as described in the feature request, baypassing...
Programmatically get Display & Screen