Is the sentence grammatically correct?
Input: The boy was playing with her toys.
Yes, the sentence is grammatically correct. It is a simple sentence with a subject (The boy) and a verb (was playing) and an adverbial phrase (with her toys).
Yes, the sentence is grammatically correct.