Nicola Sturgeon has recalled the moment her husband saved one of the Queen's corgis from being electrocuted while on a visit to Balmoral Castle.
The First Minister led a motion of condolence in honour of the monarch in the Scottish Parliament which was attended by the King and the Queen Consort.
Sturgeon told of how Peter Murrell stopped the dog, a dog named Sandy, from chewing through a lamp switch after a light began to flicker at Balmoral.
She said: "I did experience one rather tense moment at Balmoral when my husband and I were with the Queen before dinner when the drawing room light started to flicker.
"To my great alarm, he was, after all, in the presence of Her Majesty, my husband suddenly leapt up and darted across the floor. Peter had spotted the cause of the flickering light.
"One of the Queen's young Corgis, a beautiful pup called Sandy, was eating through a lamp switch. Thankfully, tragedy was averted and Sandy emerged unscathed, though not before a ticking off from his mistress."
Sturgeon also said Scotland "stands ready" to support King Charles III as he continues his mother's legacy of public service.
She added: "We are honoured by the presence today of His Majesty, King Charles III, and The Queen Consort," she said.
"Your Majesty, we stand ready to support you, as you continue your own life of service - and as you build on the extraordinary legacy of your beloved mother, our Queen. Queen Elizabeth, Queen of Scots - we are grateful for her life. May She now rest in peace."
The King and the Queen Consort were received in the Queensberry House courtyard by Presiding Officer Alison Johnstone and Deputy Presiding Officers Liam McArthur and Annabelle Ewing.
The pair then met leaders of Scotland's main political parties: Nicola Sturgeon, Douglas Ross of the Scottish Conservatives, Anas Sarwar of Scottish Labour, Lorna Slater of the Scottish Greens and Alex Cole-Hamilton of the Scottish Liberal Democrats.
Also in attendance at the special session were former First Ministers and Presiding Officers.
To sign up to the Daily Record Politics newsletter, click here.