Set localStorage
set_local_storageWrite string values into the current page's localStorage to set feature flags, consent state, or auth tokens before page scripts read them. Navigate to the target site first, then reload to apply.
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. | |
| browser | No | Which browser to act on. Each name is an independent Chrome, created on first use. Omit for the shared default; parallel agents each need their own name. | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |