Set localStorage
set_local_storageSet feature flags, consent state, or auth tokens in the page's localStorage. Merges with existing values; navigate to the target site first, then reload after writing.
Instructions
Write entries into the current page's localStorage.
Merges into what is already there rather than clearing it. Handy for setting feature flags, consent state or auth tokens before the page's own scripts read them.
localStorage is scoped per origin, so navigate to the site first — writing on about:blank goes nowhere. Most pages read these values only at startup, so reload after setting them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Key-value pairs to write, e.g. {"token": "abc", "locale": "de"}. Values must be strings — JSON-encode anything structured yourself. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |