Hi Gail, I am not sure if the Samurai Pacman Food make an ideal staple diet for tree frogs and toads. I do think they would be a nice treat for them as I believe in providing a variety of diet.
My tong-trained toad takes Pacman Food like a champ
However, I have not fed this toad another piece of pacman food since I made the video (3-4 months ago). The staple diets I use for my toad are nightcrawlers, large crickets, and superworms.