How can I check the studio's selected BrickColor [plugin]

Hey. I am trying to make a plugin that can make structures, but with studio’s selected BrickColor (see image below if you dont understand). I don’t know how to do this. If you can help me, please do.

As far as I know there isn’t any way to access this information currently.