Set cookie
set_cookieSet a browser cookie to inject session tokens or consent flags without going through login. This creates a session cookie that expires when the browser closes.
Instructions
Set a single browser cookie.
Useful for injecting a known session token, consent flag or A/B bucket without walking through a login flow.
This creates a session cookie: no expiry, gone when the browser closes. To restore a full cookie set including expiry and SameSite, use load_session. Cookies are browser-wide, not per tab.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Cookie name. | |
| path | No | URL path the cookie is scoped to. "/" covers the whole site. | / |
| value | Yes | Cookie value. | |
| domain | Yes | Domain the cookie belongs to, e.g. "example.com". A leading dot (".example.com") makes it apply to subdomains as well. | |
| secure | No | Send the cookie over HTTPS only. Browsers require this for any cookie with SameSite=None. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |