It will be a bit hard to diagnose seeing you havent even bought the car.

But my old 1jz auto behaved similar, a clean of the filter and some fresh fluid fixed it for me.

Though a second hand transmission can be had reasonably cheaply now anyway