Chop tofu, vegetables, and onion into small pieces.
Beat the eggs and set aside.
Add oil to a pan and stir-fry the tofu to remove moisture.
Add the vegetables and onion, and stir-fry.
Add the rice and mix well while stir-frying.
Pour in the beaten eggs and quickly mix and cook.
Season with soy sauce, salt, and pepper.