what is the function of the participle "wailing" in the sentence below

"the wailing toddler was having temper tantrum"

The participle "wailing" functions as an adjective in the sentence. It describes the toddler and adds more detail about their behavior, indicating that they are crying loudly and uncontrollably.