Cut tofu and onion into bite-sized pieces.
Beat the eggs and set aside.
Add oil to a pan and sauté the onion.
Add tofu and stir-fry together.
Season with salt and pepper.
Pour the beaten eggs into the pan and cook together with the tofu.
Place the cooked tofu and eggs over rice.