The boys were taken to the hospital and later released into custody of the Cumberland County Department of Social Services.
The district attorney told WTVD that Robinson was involuntarily committed last week, after she was found on a road with her children holding a knife.
During her court appearance on Tuesday, Robinson asked to have her parental rights terminated. She started yelling and swearing when the judge ordered a mental health evaluation, the Fayetteville Observer reports.
Robinson has been charged with two counts of distributing food containing noxious or deleterious material, and misdemeanor child abuse.
She remains jailed in lieu of $100,000 bail.