Actions46
- Get Vehicle Data
- Wake Up
- Flash Lights
- Honk Horn
- Lock Doors
- Unlock Doors
- Remote Start
- Actuate Trunk
- Start HVAC
- Stop HVAC
- Set Temperatures
- Set Seat Heater
- Set Steering Wheel Heater
- Start Charging
- Stop Charging
- Open Charge Port
- Close Charge Port
- Set Charge Limit
- Set Charging Amps
- Set Sentry Mode
- Trigger Homelink
- Navigation Request
- Set Seat Cooler
- Set Auto Seat Climate
- Set Auto Steering Wheel Heat
- Set Steering Wheel Heat Level
- Set Cabin Overheat Protection
- Set Cabin Overheat Protection Temperature
- Set Climate Keeper Mode
- Set Bioweapon Defense Mode
- Set Preconditioning Max
- Control Windows
- Control Sunroof
- Control Tonneau
- Set Scheduled Charging
- Set Scheduled Departure
- Add Charge Schedule
- Remove Charge Schedule
- Add Precondition Schedule
- Remove Precondition Schedule
- Charge on Solar
- Charge to Standard
- Charge to Max Range
- Schedule Software Update
- Cancel Software Update
- Set Volume
Control Sunroof
AI-generatedSummary
Control the sunroof state on a specified sunroof-enabled Tesla vehicle by setting it to vent, close, or stop.
Inputs
- VIN (required) — Select the Vehicle Identification Number (VIN) of the Tesla vehicle to control.
- Sunroof State (required) — Set the sunroof state to one of: vent (open slightly to vent), close, or stop (stop any sunroof movement).
Output shape
a response object confirming the action result from the Tesla API.
The command returns the result of the sunroof control operation for the specified vehicle. This controls only sunroof-enabled Tesla vehicles. The operation requires a valid VIN and a sunroof state command.