John Swinney has rejected a proposal to change the law to give teachers more power to search pupils following the death of schoolboy Bailey Gwynne.
Ministers were urged to consider the move by an independent review into the stabbing of the 16-year-old at Cults Academy in Aberdeen in October 2015.
In a Holyrood statement, the Education Secretary said the recommendation had been considered carefully but would not be progressed.
Pupils in Scottish schools currently have to give their consent to be searched, with police being notified if it is withheld and the young person is suspected of carrying a weapon.
Mr Swinney said: “Changing the law would confer statutory powers on teachers, allowing them to compel a young person to be searched.
“Currently outside of the prison system this power is held only by the police. We would therefore be placing teachers on the same footing as police officers if we were to change the law.
“This would radically change the teacher/pupil relationship, which is often fundamental to encouraging young people to change challenging behaviour, and potentially damage the school ethos and commitment to positive relationships that currently exists in Scottish schools.”
Mr Swinney said schools and councils already have “robust” measures in place to address violence and weapons, but refreshed guidance will be issued to reinforce the consensual search process.
He said the guidance, to be published in the spring, will also make clear that any incident “must be monitored and recorded at a local level”.
Mr Swinney also expressed the Scottish Government’s “heartfelt sympathies” to Bailey’s family.
Bailey’s killer, a 16-year-old, was locked up for nine years last April after a jury found him guilty of culpable homicide and carrying weapons.
The trial at the High Court in Aberdeen heard the knife used in the stabbing had been bought online, without the killer having to prove his age.
The multi-agency review, led by child protection expert Andrew Lowe, also called on the government to “explore the further legislative controls that can be brought to bear on the purchase of weapons online”.
Mr Swinney’s decision was welcomed by the Educational Institute of Scotland. General Secretary Larry Flanagan said emphasis should be put on creating positive relationships in schools.