BEEN THERE DONE THAT!
I had the same identical problem. Here's my tale:
If your setup is like mine, it's not too difficult if you're fairly handy. I got a lot of good info from this thread that Mitchr started.
An easy way to look at it without getting bogged down in what the correct names are is to remember there are two sensors on the throttle body (I'm talking about my 2000 Tundra 4.7)
On the right (passenger side) there is the sensor that holds the throttle cable. It's either the pedal position sensor, or throttle lever sensor or somesuch name. It's held on by 3 screws. There is no adjustment to worry about. It's fairly simple to replace. I took my time and it took me about 30 minutes. I could do it the next time in about 10 minutes. Toyota factory part number is as follows from my receipt emailed to me from
Toyota Parts Toyota Accessories New Parts Factory Original
LEVER ASSY, THROTTLE P/N: 22060-500111 $197.80
Shipping:$8.44
UPS - UPS Ground (Insured)
Handling Charge:$2.00
Order Total:$208.24 No sales tax (out of state).
(My local Toyota dealer wanted $400 + tax for the same part BTW)
On the left side of the throttle body (driver's side) is the other sensor, it's called the Throttle Position Sensor, or TPS. It's a bit more time consuming to install, but not too bad. It's still fairly simple. You have to remove the top cover with the 4.7 logo on it, some hoses, a steel bracket, etc, to get to the throttle position sensor. Once you have access to it, it's easy to replace. It's held on by 2 Phillips head screws. (don't drop the screws when you remove them). It has an adjustment range on it, but don't worry. The instruction manual talks about hooking up a meter to calibrate it after it's installed, but a mechanic buddy of mine said to just mark the position it's in originally and install the new sensor in the same spot. I did that and it works perfect.
I also ordered it from toyotapart.com:
Toyota factory part number: 89452-30140. List price $80.62, their price: $60.46. plus $4.14 shipping. No sales tax (out of state).
From all the research I did here and elsewhere, I chose to replace the Lever Assembly first (the $197 part) for 2 reasons; reading mitchr's helpful comments, I thought that was "probably" the problem, and second, it's a bit easier to replace. I turns out, that did not solve my problem, although the truck ran better with the new part installed.
Next, I replaced the Throttle Position Sensor (the $60 part). I took my time and it took me about an hour. Next time, I could do it in about 30 minutes. That solved my problem. The truck runs better than ever with both sensor's replaced.
My advice: If you're not sure which sensor is the culprit and you wanna roll the dice, replace the Throttle Position Sensor first (the $60 part).
If that doesn't work, you can always replace the other sensor and solve the problem for sure.
In closing, the $260 I spent fixing it myself sure beats the $1,400.00 the dealer wanted because according to them "we only replace the entire throttle body assembly, that's how we take care of that problem". Makes sense; they make more money and don't have to diagnose anything.
Thanks to mitchr too for putting me on the right track.