Confusing tax situation about dependents. Not sure what to do…

Long story short, I have had full-time placement of my kids since September of 2024. I had them the majority of the time before that but they were technically in foster care (very weird situation where it was a slow transition back to make sure I could handle their behavioral issues).

I lost custody of my kids due to being a victim of dv, and I was working on housing. They began reunifying back to me in January 2024.

I got the first overnight visitation order back in January 2024. From late-January to May 2024, I had the kids overnights on weekends. From mid-June to August 2024, I had the kids from Monday to Friday every week.

I had them about 230 days (with 210 overnight periods during those days) in 2024. I am the biological parent, the other person is a non-relative foster parent. CPS won’t offer advice. My lawyer may ask the judge, haven’t worked out that far yet.

Should I claim them? CPS said that they feel she should because she had foster placement (however during those overnights, I had them the full time, she wasn’t there. and it was court ordered visitation).

Any advice about what documents I’d need to prove it if she also files (and she feels that she should).