A teenage girl was stabbed in the eye, head and back by a fellow pupil with scissors following taunts about her long hair, a court has heard.
The 15-year-old victim was then left lying in a pool of blood at a Surrey school, Guildford Crown Court was told.
One girl, 14, is charged with wounding with intent. Two others, aged 15, are charged with perverting the course of justice by hiding the scissors.
All three deny charges over the alleged lunch break attack last November.
The court heard the victim was lucky not to lose her sight.
Nick Wood, prosecuting, told the jury of six men and six women the attacker and two other girls mimicked the victim as all four stood in the lunch queue.
He said the three defendants had been making fun of their victim's long hair and started asking around the canteen for a pair of scissors to cut off the victim's hair.
Mr Wood said the 14-year-old then attacked the victim with scissors in the playing fields, stabbing her through the eyelid, twice in the head and, as she fell to the ground, once more in the back.
As the attacker walked away her co-defendants were seen throwing the scissors over the boundary fence of the school playing field, the jury was told.
The girl charged with the stabbing told police it was the victim who had started the fight, by calling her an abusive name and grabbing her by the hair.
In a police interview, the girl said that her friend had borrowed the scissors from a fellow pupil in order to cut a price tag off her new bag.
'Could have lost sight'
The court heard she told officers that the reason other witnesses were not supporting her claims was because she was new to the school and had been the victim of racial abuse.
The two other defendants told police they did not think their friend would injure the fourth girl when they borrowed the scissors at her request.
Both denied having hidden the scissors to avoid detection.
One said she had been asked to do so by her friend but had refused. The other told officers her friend had put the scissors in her jacket pocket and so she had panicked and thrown them away.
The victim required surgery for the cut on the eyelid which penetrated deep enough to bruise the eyeball. Had the wound been millimetres nearer the centre she would have lost her sight, doctors said.
The jury was told they would hear from other pupils from the school during the trial which is expected to last four weeks.