Finely chop the onion and green onion.
Mince the garlic.
Cut the soft tofu into bite-sized pieces.
Heat olive oil in a pan and sauté the onion, green onion, and garlic.
Season with salt and pepper.
Add the soft tofu and gently mix over low heat until cooked.
Transfer the sautéed ingredients and soft tofu to an oven-safe dish.
Top with mozzarella cheese.
Bake in a preheated oven at 180°C (356°F) for 10 minutes.