Couldn't tell you how cruise works in a 1997, but for 1999 to 2004 without electronic throttle and manual transmissions the kit is Toyota PT474-35981. There is a different one for automatics, PT474-35980.
In 2001 Toyota started rolling out ETCS, which in first gens was just a partial throttle by wire. These trucks (like 2005+) don't even need the actuator kit, they just need a couple of sensors added and the control buttons on the wheel. Few 2001 have ETCS (Limited only and even then it's rare), but I think by 2004 more of them had it.
The kit is the actuator that goes under the dash (it physically moves the pedal), brake and clutch switches, a wiring harness, steering wheel button pod and the controller that piggybacks on the ECU. Should be about $250 with our discount.
I think for pre-1999 trucks the kit would have a different set up. The throttle body on my '91 has a channel parallel to the pedal actuated cable, which I believe held a second cable for the cruise control actuator.
'91 Pickup - Imelda
'08 Tacoma TRD - Donna
'09 Kawasaki KLR650
'12 Gunnar Rockhound 29
"Our task must be to free ourselves from this prison by widening our circle of compassion to embrace all living creatures and the whole of nature in its beauty. Nobody is able to achieve this completely, but the striving for such achievement is in itself a part of the liberation and a foundation for inner security. " --Albert Einstein