The procedure was done in Baltimore by specialist Dr. Mark Myerson. He removed scar tissue and bone fragments from the ankle, which Westbrook initially injured last season in Week 3 against Pittsburgh.
"Brian is doing well, he texted us and said he's doing well," trainer Rick Burkholder said. "We feel pretty comfortable that he'll be back by the beginning of the season. Whether he'll be back for training camp or not, it's too early to tell."
According to ESPN 950 Philadelphia, Westbrook cannot put weight on his leg for two weeks. After that, the Eagles will take a week-by-week approach to his rehabilitation.
Veterans are to report to camp on July 29.
This is the second offseason surgery for Westbrook, who also had his left knee cleaned out shortly after the Eagles' lost to Arizona in the NFC Championship Game.
He experienced pain in the ankle while rehabbing the knee.
"Most of this came from trauma from the ankle sprain," Burkholder said. "I'm not worried in the least about these injuries. He's going to be in really good shape come the season."
Meanwhile, rookie running back LeSean McCoy, a second-round pick, sprained a thumb in practice Friday, but could return to practice when the team resumes its organized team activities next week.
Information from The Associated Press was used in this report.