Andrew Stanton is returning to the world of “Toy Story” with a fifth film centered on Jessie’s new responsibilities, her lingering fear of abandonment and the growing place of screens in childhood. Taylor Swift has also joined the project to sing its end-credit song, “I Knew It, I Knew You.”

Stanton, who has worked at Pixar for more than 30 years and co-wrote the screenplay for the first “Toy Story” and the films that followed, did not immediately commit when asked to become involved in “Toy Story 5.”

“It’s a big ask,” Stanton recalled telling the studio. “I know the time commitment it’s going to be, and I know how high the bar has to be.”

Rather than decline, he proposed testing the idea on the page. His goal was to determine whether there was a story strong enough to justify continuing the series — and whether Jessie, voiced by Joan Cusack, could carry it.

Jessie takes charge

The foundation for Jessie’s expanded role was established at the end of “Toy Story 4,” when Woody, voiced by Tom Hanks, handed her his sheriff’s badge and left her in charge of the toys.

For Stanton, that change opened several new storytelling paths. Jessie is now leading the group for the first time while navigating life with Bonnie in a different household. She also enters the film with unresolved issues connected to her past.

“I’ve got to prove it to myself in my first draft that she’s worthy of being the main character,” Stanton said of his approach.

He kept that direction to himself until presenting the first draft, prepared to part ways amicably if Pixar did not want to pursue his version of the story.

Stanton subsequently invited Kenna Harris to become his co-director. Harris had worked on “Luca,” “Ciao Alberto” and “Inside Out 2,” but also emerged as an important writing collaborator on the new film.

Stanton said he prefers working with a partner rather than writing alone, describing the process as needing someone to exchange ideas with. Harris, he added, proved to be both a strong screenwriter and someone who shared his enthusiasm for Jessie.

A personal confrontation with the past

Jessie’s new leadership position brings her into conflict with Lilypad, a hand-held computer that commands Bonnie’s attention. That challenge also reawakens Jessie’s fear of being left behind.

Her story leads back to her old home and the tree where she once played with her original owner, Emily. The film’s emotional turn comes when Jessie discovers a lunch box belonging to Emily’s daughter. The girl is also named Jessie and is described as her mother’s “little cowgirl.”

According to Stanton, the filmmakers explored numerous versions of that moment as they worked to give Jessie proof that she had been remembered.

“It’s not that uncommon a tradition to be named after someone,” he said. “But you don’t realize until you get older what a gift that is — to be remembered by naming somebody else. You could heal that wound and say that she was seen and never forgotten.”

Toys meet the screen age

Beyond Jessie’s personal journey, “Toy Story 5” considers what purpose toys serve when screens increasingly occupy children’s time.

The filmmakers initially approached Lilypad as a straightforward villain. Stanton ultimately felt that version was too simplistic and did not reflect the complicated decisions parents make when giving children access to devices.

“If [tech] were bad, we as parents wouldn’t be struggling to give kids devices,” he said.

The concept was therefore reshaped around the recognition that technology is not going away. That leaves Jessie and the other toys facing something more complex than a conventional enemy: a permanent change in how Bonnie directs her attention.

Taylor Swift signs on for the credits

Swift’s participation delivered another surprise for Stanton. The singer agreed to perform “I Knew It, I Knew You” for the end credits despite being occupied with her Eras Tour when the film reached her.

“Word got to her in time, and she watched it and was so moved by it,” Stanton said, adding that he remains shocked she agreed to participate.

ShowBiz Take

“Toy Story 5” is not simply placing familiar characters into another adventure. Stanton’s approach builds directly from Jessie receiving Woody’s badge, then uses her new authority to reopen one of her deepest emotional wounds.

The technology theme also gives that character story a clear pressure point. Lilypad’s hold on Bonnie’s attention threatens Jessie’s place in the household, but Stanton’s decision not to portray technology as purely bad keeps the conflict from becoming a simple toys-versus-device showdown.

With Harris collaborating as co-director and writing partner, Swift contributing the end-credit song and Jessie moving to the center of the narrative, the fifth film is extending the series through changes in both leadership and childhood itself.