Updated

The San Francisco 49ers have agreed to terms on a one-year contract with wide receiver Randy Moss, according to ESPN.com.

Moss, who retired last August after 13 NFL seasons, told an audience on UStream.tv in February that he was trying to return for the 2012 season.

The 35-year-old Moss worked out for the 49ers on Monday. The session included head coach Jim Harbaugh throwing passes to Moss.

"Jim Harbaugh makes #49ers veteran emergency board: Best coach's workout in NFL history (especially while wearing khakis & a sweatshirt)," 49ers CEO Jed York tweeted Monday.

The move is not shocking, to say the least, considering the 49ers were in desperate need of an upgrade to their wide receiving corps.

But does Moss have some magic left in him?

Only time will tell. But prior to calling it quits, Moss caught 954 passes for 14,858 yards with 153 touchdowns. Only Jerry Rice has more TD catches with 197.

Moss had a troubled 2010 season. It began with the New England Patriots, but bitterness over his contract situation -- he was in the final year of his deal -- led to an October 6 trade to the Minnesota Vikings, the team for which he started his career. Less than a month later, Moss was claimed off waivers by the Tennessee Titans.

In 16 combined games -- four each with New England and Minnesota and eight with Tennessee -- he managed just 28 catches for 393 yards with five touchdowns.

Moss spent the first seven years of his career with the Vikings, who selected the Marshall product with the 21st overall pick in the 1998 draft. He made an immediate impact on the league, catching 17 touchdown passes in his first season.

Following his first stint with the Vikings, Moss played two years with the Oakland Raiders before joining the Patriots, who acquired the wide receiver for a fourth-round pick in the 2007 draft.

In his first season with New England, Moss set an NFL record with 23 touchdown receptions.

The 49ers went 13-3 in the regular season and won the NFC West in Harbaugh's first season. San Francisco ended up losing to the eventual Super Bowl champion Giants in the NFC Championship Game.