Roslyn Fire Station officer Michael Harrison said an 8-year-old boy was climbing a tree at the school about 1.30pm and hurt his leg, becoming stuck.
A fire crew from Roslyn attended, and firefighters used ladders to assist the boy back down the tree and into the hands of ambulance personnel.
A St John spokesman said a patient was taken to Dunedin Hospital with minor injuries.