A 14-year-old girl repeatedly stabbed two teachers and a pupil during break time at a school in Carmarthenshire, a jury has heard.
Teachers Fiona Elias and Liz Hopkin, along with a student, were injured in the attack in April at Ysgol Dyffryn Aman in Ammanford.
As the trial opened at Swansea Crown Court on Monday, the defendant, who cannot be named due to her age, was said to have told Ms Elias she was going to kill her before stabbing her in her arms.
The teenager previously admitted the triple stabbing, but denies attempted murder.
Ms Hopkin was stabbed in her neck, back, arms and legs, while the pupil received a leg injury, the court heard.
The jury watched CCTV clips of the incident showing the pupil talking to Ms Elias and Ms Hopkin during break time before pulling a knife on them.
The court heard from prosecution barrister William Hughes KC who said that the girl asked Ms Elias: “Do you want to see what’s in my pocket?”.
She then said she was going to kill her, the barrister added.
Mr Hughes then described her repeatedly stabbing Ms Elias, while Ms Hopkin grabbed her and tried to restrain her.
Ms Hopkin was then stabbed multiple times and lost hold of the teenager, the court heard.
The girl was then approached by two teachers, Mr Stephen Hagget and Mr Darrel Campbell, who were seen trying to calm her.
Mr Hughes said she again threatened to kill Ms Elias if she saw her.
The court was told the teenager then moved to another area of the school and shouted at a pupil she was going to kill her, before attacking her.
At that point the teenager was restrained by teachers and taken to a classroom where she was later arrested.
The trial is expected to resume on Wednesday.