Set cookie
browser_cookie_setSets or overwrites a cookie on the current page, enabling direct control over session or authentication state. Specify name, value, and optional domain, path, expiry, or security flags.
Instructions
Create or overwrite a cookie on the current page.
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_cookie_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Cookie name | |
| path | No | Cookie path (default /) | |
| value | Yes | Cookie value | |
| domain | No | Cookie domain | |
| secure | No | Secure | |
| expires | No | Unix timestamp in seconds | |
| httpOnly | No | HTTP only | |
| sameSite | No | SameSite policy |