is there any way to make your workers get an axe or a shovel after it is broken
Yes. You make them do thing in a cycle of Repeat with "until hand is empty", and then put instructions to grab a tool from storage after the cycle. Then put Forever around it all and presto.
Of course also get a robot making tools for endless cycle.
and how do you utilize the 'until hand is empty' command?