An alleged attempted murderer sought help from two friends after using a machete to sever a man’s fingers, a court has heard.