Sorry I missed this… I’d have suggested cleaning the MAF as one of the first things….
If you have fuel, air and spark then the classics are dirty maf sensor or faulty tps or, for rough idle, dirty iac valve.
As the 5VZFE is quite rare over here I often find great info on Us 3rd gen 4Runner...