An egg cooker is primarily designed to cook eggs in various styles, such as hard-boiled, soft-boiled, poached, or scrambled. However, many egg cookers work by steaming and can be repurposed for steaming vegetables, thanks to their steaming mechanism. To use an egg cooker for steaming vegetables, it usually involves placing the vegetables in the tray that comes with the cooker, adding the required amount of water, and allowing the machine to operate until it automatically shuts off.