Cut the tofu into bite-sized pieces.
Slice the onion and green onion.
Add cooking oil to a pan.
Grill the tofu on both sides until golden brown.
Add the onion and green onion and stir-fry.
Make a sauce by mixing soy sauce, chili powder, minced garlic, water, and sesame oil.
Pour the sauce over the tofu and simmer.
Serve the braised tofu over rice to finish.