add_cookie
Set a browser cookie by name and value to skip login screens or enable test modes. Navigate to the target domain first, then refresh for the page to see it.
Instructions
Set a cookie in the browser, e.g. a session or feature-flag cookie to skip a login screen or switch on a test mode. Browsers only accept cookies for the site that is currently open, so navigate to a page on that domain first. The page does not see the cookie until its next request, so refresh (history) or navigate afterwards. Setting an existing name replaces that cookie.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Cookie name, e.g. 'session_id'. | |
| path | No | URL path the cookie applies to (default '/'). | |
| value | Yes | Cookie value. | |
| domain | No | Domain the cookie applies to, e.g. '.example.com' to include subdomains. Defaults to the current page's host. | |
| expiry | No | Expiry as a Unix timestamp in seconds. Omit for a session cookie that ends when the browser closes. | |
| secure | No | Only send the cookie over HTTPS. | |
| httpOnly | No | Hide the cookie from page JavaScript (document.cookie). | |
| sameSite | No | SameSite policy: Strict, Lax, or None (None also requires secure: true). Omit for the browser default. |