'〜(よ)うとする': Attempting / On the Verge ('Try to / Just About to')
[Verb Volitional Form] + とする (Attempting an action or on the verge of doing)
'〜(よ)うとする' indicates that someone is attempting or exerting effort to perform an action, or is at the very threshold of beginning it ('trying to...', 'attempting to...', 'just about to...'). Often used in the past tense with '〜としたとき' to describe an interruption.
⚠ Note: Interrupted attempt: '出かけようとしたとき、電話が鳴った' (Just as I was trying to head out the door, the phone rang).
家を出ようとしたとき、雨が降り出した。
Just as I was trying to leave the house, rain started pouring down.
赤ちゃんが一人で立とうとしている。
The baby is trying to stand up all by himself.