> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bringits.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Window Data

> Set a value at a given path within the browser window object

The Set Window Data command (Command Type: 17) sets a specified value at a given path within the browser's `window` object.

## Command Type

**Command Type ID:** 17

## Parameters

| Parameter   | Type                      | Description                                                                                                          | Required |
| ----------- | ------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------- |
| **path**    | Array of string or number | Array representing the path in the `window` object. Example: `["app", "state", "mode"]` sets `window.app.state.mode` | Yes      |
| **timeout** | number                    | Timeout in milliseconds                                                                                              | Yes      |
| **value**   | any                       | The value to assign at the specified path                                                                            | No       |

## Usage Examples

### Set a Simple Property

```json theme={null}
{
  "command": "set-window-data",
  "params": {
    "path": ["app", "config", "theme"],
    "timeout": 5000,
    "value": "dark"
  }
}
```

### Set a Complex Object

```json theme={null}
{
  "command": "set-window-data",
  "params": {
    "path": ["store", "filters"],
    "timeout": 5000,
    "value": { "sport": "football", "live": true }
  }
}
```

## Related Commands

* [Get Window Data](/stream/commands/browser/get-window-data) - Read from the window object
* [Get Window Data Simple](/stream/commands/browser/get-window-data-simple) - Simpler read with dot-path
