Have Toyota Questions? Ask a Mechanic for Answers ASAP
Thanks for posting
The dealer will know what to look for after you relay the same context as above to them, the first thing is to check for diagnostic codes, since you disconnected the battery there may be something in the history of the computer or pending codes, unless the check engine light is on then there will be "hard" or permanent codes.
The check engine light is usually the root cause, when it turns on it can also trigger other warning light so the CEL is usually addressed first, most of the time the CEL on is caused by an emission control malfunction but in this case it is probably something else since there was a loss of power and engine stalling. It could also be a mechanical engine problem, this engine has a timing belt so I would suggest that it be checked as well as fuel pressure if necessary.
Please reply if you have any other questions or concerns about this.