It was about these tiny killer robots trying to kill this boy, and his gramps came and dragged him into this weird journey.
I'm gonna talk about spoilers here, gramps has to fake his death so the son can get away, he go find his gramps' friend, who ends up being impersonated by one of the bad guys. Then it bring in stories about Babylon golems, close to the end of the book there’s this sudden chase where the son is on a quickly growing golem. Book ends with the kid using the toy robot’s magical powers to knock down a bully.
Also there was a child with the villains, she straight-up dies. I remember it was some dude’s first ever book.
The cover looked like a creepy snowy street bridge, with little foot prints.