Kirby Lee-USA TODAY Sports

The San Francisco 49ers have agreed to a one-year contract with former Pittsburgh Steelers quarterback Josh Dobbs for the 2024 season, according to his agent, Mike McCartney.

Dobbs split the 2023 season between the Arizona Cardinals and Minnesota Vikings and earned the most extensive playing time of his NFL career.

The 29-year-old former Steelers fourth-round pick played in only six games over five seasons with the Steelers from 2017-21. In 2022, he made his first career start, one of two that season in relief of injured starter Ryan Tannehill.

Last fall, Dobbs was in training camp with the Cleveland Browns when a strong preseason performance convinced the Cardinals to trade for him on the eve of the regular season and make him their starter, sending a seventh-round pick to Cleveland to get him.

Dobbs made eight starts in Arizona, throwing 266 times and competing 167 (62.8%) for 1,569 yards (5.9 yards per attempt), eight touchdowns, five interceptions and an 81.2 passer rating.

With injured Arizona starter Kyler Murray nearing a return, the Cardinals traded Dobbs and a seventh-round pick to the Minnesota Vikings for a sixth-round pick at the NFL trade deadline. In Minnesota, Dobbs replaced injured starter Kirk Cousins, entering his first game with the Vikings before he even learned his teammates’ names.

He played in five more games in Minnesota, maintaining a 62.9% completion percentage, 5.9 yards per attempt and a 76.4 passer rating.

In San Francisco, Dobbs will back up Brock Purdy, after 2023 reserve Sam Darnold signed as a free agent to replace Cousins as the starter in Minnesota.

The contract between Dobbs and the 49ers is for one year and a fully guaranteed $2.25 million that also includes $750,000 in potential incentives.

More must-reads:

TODAY'S BEST
Do Oilers need more from Connor McDavid to get to Stanley Cup Final?
All-Rookie teams show gems available all over draft
The NBA has not witnessed this much parity in 50 years
Knicks expected to be 'aggressive' in upgrading their roster
Drew Bledsoe offers advice for Patriots rookie QB Drake Maye
2024 AFC revenge games: Brothers, 'Stefon Diggs Bowl' to take center stage
2024 NFC revenge games: Which game should Cowboys, others have circled?
How All-Star Race victory could turn Joey Logano's season around
Xander Schauffele's triumph could open the floodgates for his career
Anderson Silva, Chael Sonnen will finish off their trilogy in a boxing ring
Ranking the five best MLB free-agent signings of offseason
Veteran WR, former first-round pick announces NFL retirement
Oilers advance to West Final again after holding off Canucks in Game 7
Bengals star WR not expected to sign franchise tender before OTAs
Red Sox RHP diagnosed with ligament damage in elbow
Watch: Caitlin Clark shows off range with logo three, but Fever fall short
Former Dolphins receiving leader announces his retirement from NFL
Detroit Lions dominate PFF's top-25 players under 25
Hall of Famer, legendary Raiders offensive lineman dead at 86
Report: Cavs owner 'would never' trade Donovan Mitchell to this team