Arrangements for automatic insertion or removal of tools