How long will pain medications be necessary after tendon repair surgery?

Short time. Pain and the need for pain medication is a very subjective item. Some people need none & some need it for several weeks. It also depends on what tendon was repaired.