Set cookie
browser_set_cookieCreates or updates a cookie in the current browser profile, enabling control over session and authentication data by setting name, value, domain, path, and security flags.
Instructions
Create or update a cookie in the browser for the current profile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL the cookie belongs to (used to derive domain/path) | |
| name | Yes | Cookie name | |
| path | No | Cookie path (default: /) | |
| value | Yes | Cookie value | |
| domain | No | Explicit cookie domain | |
| secure | No | Only send over HTTPS | |
| httpOnly | No | Not accessible from JavaScript | |
| sameSite | No | SameSite policy | |
| expirationDate | No | Unix timestamp (seconds) when the cookie expires |