The Scottish Government has announced it is to raise the age of criminal responsibility from eight to 12.

Early Years Minister Mark McDonald confirmed the move in a statement to MSPs in the Scottish Parliament chamber.

At present, children under the age of 12 cannot be prosecuted in court in Scotland, but those aged eight and over can be referred to the children's hearings system for offending.

An advisory group set up by the Scottish Government in 2015 recommended that the age of criminal responsibility be raised to 12.

Ministers held a consultation on the age change between March and June this year, but did not take a firm position on the proposal.

Updating MSPs on the Government's position, Mr McDonald said: "I can announce today that we will raise the minimum age of criminal responsibility in Scotland from eight to 12 years and we will introduce a Bill in this session to do so."

The move was largely welcomed by parties across the Holyrood chamber.

Conservative MSP Douglas Ross said: "The Law Society has emphasised that raising the age of criminal responsibility would bring it into line with the age of criminal prosecution, and this seems a sensible approach to create coherence and consistence in the law. We on these benches will wait to see the full details of the Government proposed legislation.

"I also welcome the minister's sensitivity over the concerns that some will have regarding this proposal to change the law. Can he advise how the Scottish Government will, as he said, sustain and build public confidence to ensure this approach will not be perceived as diminishing the seriousness of child and youth offending?"

Mr Ross also called on Mr McDonald to confirm that in very serious cases, safeguards would be in place "to ensure that the law continues to act as a deterrent and one that guarantees victims' families receive the justice they deserve".

Mr McDonald said he would be happy to work with MSPs from all parties to ensure the legislation meets with the confidence of the public and highlighted a range of safeguards set out by the advisory group.

Labour MSP Claire Baker said: "I welcome the announcement today that the minimum age of criminal responsibility will be raised to 12. From the advisory group to the consultation submissions to the minister today, the argument has been persuasively made for such a raise and he has the support of Scottish Labour in taking this forward."

She asked for more detail on the extent of police powers and warned that ministers must not underestimate the challenge of winning "hearts and minds" over the proposal.

Liberal Democrat Liam McArthur said his party "warmly welcomed" the decision, and highlighted the "pivotal" contribution of former Lib Dem MSP Alison McInnes on the issue.

He urged Mr McDonald to reassure campaigners that the disclosure measures would not result in children having a record that followed them into adulthood, and asked whether there would be any retrospective impact for those who already have a record as a result of offences committed between the ages of eight and 11.

Mr McDonald said "careful consideration" would be given to the issue of retrospective disclosure.

Green MSP John Finnie called for a training package to be put in place to ensure all agencies work collaboratively under the new legislation.