The rear of the moonroof can be tilted open to provide more ventilation.
To fully tilt automatically, momentarily press the tilt/slide switch.
To fully close automatically, momentarily press the tilt/slide switch in the forward direction.
To stop tilting partway, press the tilt/slide switch.

Moonroof (Some models)
Slide OperationMazda 6 Owners Manual: Sas unit configuration
1. Connect the SST (WDS or equivalent) to the DLC-2.
2. Input vehicle information following the directions on the screen.
3. Select Module programming.
4. Select Programmable module installation.
5. Select the following items and perform procedures according to directions
on the screen.
...
Mazda 6 Owners Manual: Windshield Defrosting and Defogging
Press the windshield defroster switch. In this position, the outside air position
is automatically selected, and the air conditioner automatically turns on. The air
conditioner will directly dehumidify the air to the front windshield and side windows.
Airflow amount will be increased.
WARNING
...