In a medium bowl, crack the eggs and season them with salt and pepper. Whisk until well combined.
Heat 1 tablespoon of vegetable oil in a large skillet over medium heat. Pour in the whisked eggs and cook, stirring occasionally, until softly scrambled. Transfer the cooked eggs to a plate and set aside.
In the same skillet, add the remaining tablespoon of oil and sauté the chopped onion until it's softened and translucent, about 3-4 minutes.
Add the minced garlic to the skillet and cook for another 30 seconds or until fragrant.
Stir in the diced tomatoes, soy sauce, and sugar. Cook the mixture for 5-7 minutes, or until the tomatoes have softened and released their juices.
Add the scrambled eggs back into the skillet with the tomato mixture, and gently stir to combine.
Cook for an additional 1-2 minutes, or until the eggs are heated through.
Remove the skillet from the heat and stir in the sliced green onions. Season with additional salt and pepper if needed.
Transfer the Tomato and Egg Stir-Fry to a serving platter and garnish with fresh cilantro or parsley if desired. Enjoy this flavorful dish with steamed rice or your favorite grain.