You know the 4th Doctor (well sort of) did appear in a TOS novel for like a few seconds. I believe it was My Enemy, My Ally.
Correct. Uhura is watching an episode in the Rec Room.
It is not, however, a Tom Baker episode that actually exists.
The Doctor also appears, as a character, in Ishmael
, and Cervantes Quinn of the Vanguard
novels has a sonic screwdriver he stole off of an eccentric man.