browser_set_cookie
Set or update a browser cookie with name, value, domain, path, expiry, SameSite, and secure flags to manage authenticated sessions and site state.
Instructions
Set or update a browser cookie
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"value": "<value>"
},
"name": "browser_set_cookie"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Cookie name | |
| path | No | Cookie path (defaults to /) | |
| value | Yes | Cookie value | |
| domain | No | Cookie domain, e.g. .example.com | |
| secure | No | Secure cookie (HTTPS only) | |
| expires | No | Expiry as a Unix timestamp in seconds | |
| httpOnly | No | HttpOnly flag (currently not supported by the document.cookie setter) | |
| sameSite | No | SameSite policy |