# Windows

## POST `/api/1/vehicles/{id}/command/window_control`

Controls the windows. Will vent or close all windows simultaneously.

`lat` and `lon` values must be near the current location of the car for `close` operation to succeed. For `vent`, the `lat` and `lon` values are ignored, and may both be `0` (which has been observed from the app itself).

### Parameters

| Parameter | Example | Description                                                                 |
| --------- | ------- | --------------------------------------------------------------------------- |
| command   | close   | What action to take with the windows. Allows the values `vent` and `close`. |
| lat       | 0       | Your current latitude. See Notes above.                                     |
| lon       | 0       | Your current longitude. See Notes above.                                    |

### Response

```json
{
  "reason": "",
  "result": true
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tesla-api.timdorr.com/vehicle/commands/windows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
