Is there a possibility to control the visibility of a Touch Bar button via AppleScript or dedicated action?

Hi there!
I failed to find any way to toggle the visibility of a touch bar button on the fly. It would be nice to have such AppleScript command or trigger.