How to get existing tabs from script?

Is there a way to get data paths from existing tabs in the toolbar?
Also need help with switching through tabs through Python script

There’s no API to switch tabs and retrieve which exist AFAIK. You could go and read all addon script files in and search for bl_category however…