Webb (11-5) allowed five hits and walked two in his second straight win. He pitched seven effective innings in a 6-4 victory at Oakland last weekend.
“His changeup was very good,” Pirates manager Derek Shelton said. “He was able to execute it throughout the count, at any point.”
LaMonte Wade Jr. hit a solo homer, helping San Francisco to its fifth win in seven games. Wade also doubled and scored on Joc Pederson’s double in the first.
Wade is hitting .187 (14 for 75) in 30 games since leaving the injured list, but 5 for 13 (.385) in his last six games.
“My at-bats have been better,” he said. “I’m trying to keep working on it, one at-bat at a time. I think it’s definitely going in my direction.”
Castro had two hits in Pittsburgh’s fifth loss in six games. Tyler Beede (1-2), who broke into the majors with San Francisco in 2018, allowed two runs and three hits in three innings while serving as the opener for the Pirates.
Webb improved to 8-3 in 13 starts this year at Oracle Park. The Pirates loaded the bases in the eighth on Tucupita Marcano’s double and walks to pinch-hitter Josh VanMeter and Bryan Reynolds, but Webb escaped the jam by striking out Ben Gamel.
Webb appreciated being left in the game by manager Gabe Kapler.
“After I walked Reynolds, Kap was like, ‘OK, let’s go,’” Webb said.
Webb also helped himself with a nice defensive play in the third, scooping up Kevin Newman’s soft grounder and lunging for first base for the out.
Wade led off the third with a drive to right-center for his sixth homer. It was Wade’s fourth multihit game of the season.
Pirates: 3B Ke’Bryan Hayes was out of the lineup because of back spasms. Castro replaced him. Shelton reiterated that Hayes, 25, might receive occasional breaks to keep him playable overall. “We’ll try to get him as much relief as possible,” Shelton said. “Hopefully we can alleviate the discomfort.” ... CF Reynolds is continuing to play regularly despite an oblique injury. The switch hitter started Saturday, one day after his streak of reaching base in 10 consecutive games ended.
Giants: Kapler said C Joey Bart, who is dealing with a sprained right ankle, could play if needed in an emergency. Bart is day to day. He ran on the field during batting practice Saturday.
The Pirates and Giants conclude their season series on Sunday at Oracle Park. Zach Thompson (3-9, 5.08 ERA) starts for Pittsburgh, and Alex Wood (8-9, 4.17 ERA) pitches for San Francisco. Wood is 3-4 with a 4.42 ERA in 10 starts at home, compared to 5-5 with a 3.94 ERA in 12 road outings.
Fantasy Baseball: Way-too-early top-25 players for 2023
The 2022 baseball season has just ended, but Eric Karabell already has some initial thoughts as to who he thinks will be the top-25 players in fantasy baseball for 2023.
The top 10 plays of the MLB season
With the book closed on the MLB regular season, check out the top 10 plays from the season.
Manfred on HR record: 'Let fans make their own judgment'
Rob Manfred details how fans will use historical context to look at records such as Aaron Judge's AL-record 62nd home run.
Is Jasson Dominguez living up to the hype?
Kiley McDaniel breaks down Jasson Dominguez's chances of being a good-to-great everyday player in Major League Baseball.
Everything you need for the 2022 MLB playoffs: Odds, strengths (and weaknesses) and how far all 12 teams will go
The expanded MLB postseason is upon us. Here's why your squad could be playing into November -- or be sent home early.
'This is how I want my career to end': In magical final season, one last playoff push for Albert Pujols
As he gets set for October, the future Hall of Famer reflects on his incredible farewell journey.