Can you help me with the basic code to build a custom tool at version 6 as I can't find any documentation, please.