We do currently have a part of the REST API that should help you out. You’re currently able to listen to events on the board, like SELECTION_UPDATED, for example. From here, you could filter out the type of widget selected (it returns a widget type), and do whatever you need from there.