Use an anvil with the damaged tool and matching material or another same tool
Use a grindstone to remove enchantments and repair by combining two same tools
Combine two damaged tools of the same type in a crafting grid
Use the Mending enchantment and collect XP to repair the tool
Repair leather armor and some items with the appropriate material on an anvil
Replace the tool if it is too damaged and cannot be efficiently repaired
