Police were called to an Aberdeenshire school after reports that a teen entered with a knife.
Officers attended at Peterhead Academy around 2.20pm on Tuesday afternoon after claims of a teenager carrying the weapon.
All pupils were told to remain in their classrooms until officers arrived and arrested a 14-year-old in connection with the incident.
An Aberdeenshire Council spokesperson initially said there was an “intruder” in the building but later clarified that a teen had visited for a meeting before later being found in possession of the weapon.
They said: “A visitor was attending Peterhead Academy with a parent for a pre-arranged meeting with the school when he became disruptive.
“The safety and wellbeing of pupils is our top priority and when we became aware the visitor was in possession of an offensive weapon, police were called.
“This incident was dealt with swiftly by our staff and Police Scotland and pupils remained in their classrooms throughout.
“We are offering support to any of our pupils that require it.”
A Police Scotland spokesperson said: “Police Scotland received a report of a teenager with a knife at a school in Peterhead, around 2.20pm on Tuesday, January 31.
“Officers attended and a 14-year-old has been arrested in connection, no persons were injured and enquiries are ongoing.”