window object.
Command Type
Command Type ID: 17Parameters
Usage Examples
Set a Simple Property
Set a Complex Object
Related Commands
- Get Window Data - Read from the window object
- Get Window Data Simple - Simpler read with dot-path
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Set a value at a given path within the browser window object
window object.
| 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 |
{
"command": "set-window-data",
"params": {
"path": ["app", "config", "theme"],
"timeout": 5000,
"value": "dark"
}
}
{
"command": "set-window-data",
"params": {
"path": ["store", "filters"],
"timeout": 5000,
"value": { "sport": "football", "live": true }
}
}