In the episode, Plankton ordered ToyBob to wreak havoc on Bikini Bottom after he found out that SpongeBob is immune to his Jerktonium-laced fruitcakes. ToyBob did things like slamming the door from Squidward's House on Squidward's head, attacking citizens, and pursuing Santa and transforming into a bigger version of itself to spread more destruction.
Despite the fact that ToyBob looks almost nothing like SpongeBob himself, he managed to fool everyone he encounterd, even tricking Santa Claus into thinking SpongeBob, and everyone else, except Plankton, (and maybe Squidward,) had become naughty. Eventually, ToyBob started to set its sights on eliminating Santa, but SpongeBob managed to defeat and blow up the robot by covering it in fruitcake.
ToyBob's name is was never actually spoken in It's a SpongeBob Christmas!; it is shown only in the episode's end credits.