Hi,
That's would be great if you could provide a capslock widget for Touch bar with a visual return of the state.
I have currently done that manually but I didn't find how to switch the status of capslock with apple script.
So I use your action "Toggle Capsclok" and check the status of the capslock regularly to update the display. Consuming resources for nothing ️