" Toy Story " follows a group of anthropomorphic toys who pretend to be lifeless whenever humans are present , and focuses on the relationship between Woody , a pullstring cowboy doll ( Tom Hanks ) , and Buzz Lightyear , an astronaut action figure ( Tim Allen ) .