Please tell me that to do. (X)
Please tell me what to do. (O)
or Please tell me how to do it. (O)
"what to do" is the direct object (not object complement 受詞補語) of the verb "tell", where "me" is the indirect object. The verb "tell", like "give", is a ditransitive verb, which can take two objects.