Mubashir Jamilhadtold an undercover police officer he wanted to wear a suicide vest and "press the button", the Old Bailey court in London heard during his trial.
The 22-year-old was arrested in April last year, a few days before he planned to leave for Turkey, after messaging the officer on a mobile app in which he also revealed that he wanted to fight for the Islamic State (ISIS) terrorist group in Syria.
"If you or some brother you know can put an explosive belt on me and tell me how to press, as soon as possible for security reasons, I can do something in the UK even tomorrow after I find a good target," he told the undercover officer using the name of Abu Hasan.
The court was told that he had suffered bouts of mental illness and he judge ruled that a part of his six-year sentence will be served in a secure hospital.
Also Read
Jamil, a warehouse worker for the online retailer Amazon, was a former A-grade student from Challney High School for Boys in Luton, near London.
He became obsessed with the idea of martyrdom after surfing the internet for execution videos and ISIS propaganda,his trial was told.
Judge Peter Rook said his crime was only "in part" explained by his mental health disorder and described him as "dangerous".
He handed Jamil a "hybrid order", meaning he will continue to be treated in a secure hospital until he is well enough to be transferred to prison.
Jamil will also have to serve a further five years on extended licence, or under police monitoring, on his release.
Jamil was caught red-handed chatting to Hasan online as counter-terrorism officers burst through his bedroom door in Luton on April 27.
It emerged in court that before becoming radicalised around April 2014, he had spent most of his free time at the home he shared with his mother, younger brother and younger sister, playing computer games or surfing the web.
In March 2016, he was sent an ISIS application form by someone using the handle 'abdullah9996' on Telegram, the encrypted messaging app used by the network.
The contact led him into the web of the undercover operation planned by the UK's counter-terrorism officers.
Disclaimer: No Business Standard Journalist was involved in creation of this content