If a person is actively endangering themself or others while showing symptoms of mental illness then the police can be called to manage the situation.
Alternatively, a request can be turned into the court to ask that an individual is mentally evaluated due to safety concerns.