How to set the length of tools