例例文
When the fire alarm rang, nobody knew what to do.
火災報知器が鳴ったとき、何をすべきか誰も分からなかった。
EN英英で言うと
used to talk about the action that someone should take
源語源・イメージ

疑問詞+to 不定詞で「これから~すべき内容」を 1 つの名詞のかたまりにする形。
!入試ポイント
= what S should do。where to go(どこへ行くべきか)、how to do(やり方)、which to choose、when to start なども同じ型。tell A where to go のように「A+疑問詞+to do」の語順が並べ替えで頻出。
「何を…すべきか」で名詞の働き(know / tell / decide / ask などの目的語)をする。= what S should do。tell A what to do のように「動詞+人+疑問詞+ to do」の語順が並べ替えで頻出。what は to do の目的語なので、do の後ろにさらに目的語は置かない(× what to do it)。where to go、how to use、which to choose も同じ型。
同じ意味what S should do
VSここが違う!
what to dovshow to do
what to do は what が do の目的語(何をするか)、how to do は方法(どうやってするか)で、do の後ろに目的語を置ける。見分け方:to 不定詞の後ろに目的語が欠けていれば what、目的語がそろっていれば how / when / where。
I don't know what to say. / I don't know how to say it in English.
覚覚え方
what は「何を」で、to do の目的語が前に飛び出したもの。to do の後ろが空いていれば what、空いていなければ how / where、と目的語の穴の有無で疑問詞を決める。
Q入試形式の例題
I didn't know to say when my friend told me the sad news.
say の目的語が欠けているので、目的語の働きをする what(what to say で「何を言うべきか」)。how to say なら say の後ろに it などの目的語が必要。that は to 不定詞を続けられない。which way は「どの道・方向」で say と合わない。