What i posted here could be repurposed to return "size" instead of text/tooltiptext/title (of only the root then i suppose)
for the print i didnt do only the root object yet tho
not all of the code will be needed for this tho, but it gets you started
(seems to need to be version 8.1+)