Cut the tomatoes and tofu into bite-sized pieces.
Thinly slice the onion.
Heat olive oil in a pan and sauté the onion.
Add the tomatoes and season with salt and pepper.
Add the tofu and gently mix.
Transfer to an oven-safe dish.
Sprinkle cheese over the seasoned tomato and tofu mixture.
Bake in a preheated oven at 200°C for 10 minutes.