If I had to do this I'd probably look into PCB-based solenoids with compliant mechanisms. But there are already people working on that.