Finely chop the onion and green onion.
Mince the garlic.
Heat olive oil in a pan and sauté the onion, green onion, and garlic.
Add tomato sauce and bring to a simmer.
Gently add the soft tofu and mix carefully.
Season with salt and pepper.
Transfer to an oven-safe dish and top with mozzarella cheese.
Bake in a preheated oven at 200°C (392°F) for 10 minutes.