If added to the major league roster, Beckham would get a $1.25 million, one-year deal.
Beckham posted a clip on Twitter of him celebrating in the dugout with teammate Hunter Pence, saying: ”I hope I get to a lot more of this with (at)hunterpence this year. Excited for the opportunity to play w/ a great Org.”
The team announced the deal Wednesday, five days ahead of when pitchers and catchers report to spring training.
Beckham was acquired by San Francisco in a trade with Atlanta last Sept. 27 for the season’s final week, with second baseman Eduardo Nunez injured, and Beckham appeared in three games and made two starts at third base.
The 30-year-old hit .212 with five home runs, 16 doubles and 31 RBIs in 88 games last year.
San Francisco also added veteran shortstop Jimmy Rollins on a minor league contract this offseason to add infield depth.