Finely chop the onion and green onion.
Heat cooking oil in a pan and sauté the onion and green onion.
Add soft tofu and cook while mixing evenly.
Add rice and mix well with the tofu.
Season with salt and pepper.
Top with cheese, cover with a lid, and melt the cheese.