Cut the tofu and onion into bite-sized pieces.
Crack the eggs into a bowl and season with salt.
Heat cooking oil in a pan and sauté the onion.
When the onion becomes translucent, add the tofu and stir-fry briefly.
Pour in the beaten eggs and gently stir over low heat until softly set.
Season with soy sauce and pepper, then serve on a plate.