browser_cookie_set
Set browser cookies with optional flags like secure, httpOnly, sameSite, and expiry, using a URL or domain to define scope.
Instructions
Set a cookie with optional flags. Provide url, or domain (path defaults to /). If neither given, the active page's origin is used.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL the cookie applies to. Alternative to domain/path. | |
| name | Yes | ||
| path | No | Cookie path, default /. | |
| value | Yes | ||
| domain | No | Cookie domain, e.g. .example.com | |
| secure | No | ||
| expires | No | Expiry as Unix timestamp (seconds). Session cookie if omitted. | |
| httpOnly | No | ||
| sameSite | No |