が何をするつもりなのか

what someone intends to do

→ が
phrase Rare #34,038
what someone intends to do Used in an embedded question about someone's plans or intentions. The subject before が can be a person's name or pronoun.
JA: 彼が何をするつもりなのか、誰にもわからない。
EN: No one knows what he intends to do.

トムが何をするつもりなのかよくわからない

I'm not really sure what Tom intends to do.

トムメアリーが何をするつもりなのか詳しく知らない

Tom doesn’t know in detail what Mary intends to do.

彼女が何をするつもりなのかはっきりとは知らない

I don't know exactly what she intends to do.

トムメアリーが何をするつもりなのかはっきりと知らない

Tom doesn't know exactly what Mary intends to do.

彼女が何をするつもりなのか全く知らなかった

I had no idea what she was planning to do.