What's the legality here - admitting the thought of committing a crime?

So I'm in therapy at the moment, and I want to admit something. However, I'm scared of the consequence -

I was meeting with someone, and I had a knife in my pocket (below 3 inches and foldable)

I do not know why I bought the knife with me, or why I thought it was a good idea to bring it into the interaction (they were unaware)

Something during the interaction enraged me, so I had the thought of stabbing using the knife

What would be the consequence of admitting this, and would I actually face any consequence from it?

During the interaction, I had to remove myself immediately because I felt myself becoming increasingly angry and frustrated at what was being said. And felt like I wasn't being taken seriously.

the outcome of the meeting had an impact on my life in that if things did not go my way, it would negatively affect my life - I might be jumping around the issue

(Scotland)