Based on what you just told me you will not be able to claim your children as dependents this year. They would have to live with you for more than six months, and they did not.
If both you and the foster parents tried to claim them the IRS would send both of you a tax notice requesting additional information. The foster parents would then have the more than six month criteria on their side.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"