Scottish schools have dealt with nearly 150 safety incidents in the last two years, new figures show.

The Scottish Conservative Party said a freedom of information request to councils revealed 147 incidents between 2017 and 2018.

These included walls collapsing, windows falling onto playgrounds, ceiling tiles striking teachers, loose concrete hitting pupils and football goalposts caving in.

Three of the incidents took place at Liberton High School, in Edinburgh, where 12-year-old Keane Wallis-Bennett died when a wall collapsed in 2014.

That included, in April this year, a case where a “heavy ceiling tile fell, landing close to a pupil”. Another fell and landed near a teacher.

In a separate incident a child was trapped under a sliding partition door after it came off its runners at a new school in Dumfries and Galloway.

The £28 million North West Community Campus was eventually closed after a child was struck by a smart board which became detached from a wall.

In 2016, safety failures forced 17 Edinburgh schools to close with a subsequent report highlighting a lack of proper scrutiny of the construction work.

Liz Smith, education spokeswoman for the Scottish Conservatives, renewed the party’s call for building reports to be included in school inspections in order to keep children and staff safe.

She said: “Each one of these incidents represents a risky situation that children or staff have been put in while at school.

“Children and staff must be safe at school and the fabric of the school buildings must be maintained properly.

“Including building reports in school inspections is an obvious way to ensure that school buildings are fit for purpose and prevent any more avoidable accidents.”

Ms Smith said it was “extremely fortunate” that more children or staff hadn’t been hurt.

She added: “The SNP must ensure schools are properly built and maintained. Including building reports in school inspections would enable effective monitoring of school buildings and prevent further harm.”

Other incidents highlighted under freedom of information included a window at Clermiston Primary, in Edinburgh, falling in last year “due to a gust of wind”.

A similar incident happened at a Glasgow school in September when a window became detached and fell five metres into the playground.

Other incidents include a pupil being struck by a metal panel from a roof in West Lothian, and a ceiling collapse in East Ayrshire.

Scotland-wide, the figure is likely to be even higher, with many councils failing to collect and publish the information. In all, 18 out of 32 councils collected incidents and were able to publish the information.

Teaching unions have also raised concerns over the quality of school buildings in recent years.

In particular there have been fears quality has been sacrificed with a shift away from council-run construction to other models, such as private finance or not for profit trusts.

Other incidents uncovered by the Scottish Conservatives included a collapsed ceiling in a stairwell at Cumnock Academy, in East Ayrshire and a changing room door which fell off and hit a pupil at Douglas Ewart High, in Dumfries and Galloway.

A piece of cement fell from toilet ceiling and hit a pupil on the head at one Edinburgh primary while a piece of roofing felt became loose in high winds and was blown into the playground at another school in the capital.