A 33-year-old man has been charged following a disturbance at the Fox Covert Primary School in Corstorphine.
Officers were called to the scene around 1.40pm on Monday afternoon.
Police later confirmed that the man had been charged with an alleged breach of the peace and was due to appear at Edinburgh Sheriff Court on Tuesday.
No children from the school were placed in danger during the incident