How to do ik with hand tools/weapons?

I’ve seen plenty of examples on making the character’s hands stick to items using unreal IK but what about if the character is holding a melee tool or weapon and I want the tool to react to physics and the hands to follow?

Perfect example is an axe hitting a tree. How do I make the axe “stick” and the hands stay on the axe? Another example, the character swings a sword and hits the wall. I want the sword to “bounce” but the character’s hands to stay on the sword. How is this implemented? I can’t find anything on this.

You’d use physical animations for that.