Set cookie
set_cookieSet a browser cookie to inject a known session token, consent flag, or A/B bucket, bypassing the login flow. Creates a session cookie that lasts for the browser session.
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. | |
| 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 |