Run the tool hook in autorepl and autosnap