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.
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 |
|---|---|---|---|
| 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 |