Not my area of expertise, but...
I'm not sure you want anything relying on physical contact with the nails or the thumb tab/spring. At some stage, something will jam up.
But some kind of proximity sensor should be able to do the trick. Either something looking for the thumb tab (i.e. near = on/sound alarm) or something looking for the absence of something (say the nails in front of it (i.e. not near = on).
You've got plenty of power on board if you're willing to tap into the tool's battery. But someone more knowledgeable than I would be required for that (ideally AvE will have done a skookum BOLTR tearapart of that particular tool and you can see up its skirts for its internal chooch factor).