Can a specific tool be selected programatically?

In my react/uxp plugin, I have a button that adds a gradient to the document.

Once that happens, I want the gradient tool to be selected automatically so the user can immediately adjust the position of the new gradient without having to click on the tool themselves.

I don’t think it’s possible, but asking here just in case.


For now I’m just going to copy-paste my answer from here:
Check out @Jarda’s Alchemist plugin. Specifically the inspector how-to video

If you still have trouble, let us know here