browser_cookie_set
Set browser cookies with optional flags like secure, httpOnly, sameSite, and expiry, using a URL or domain to define scope.
Instructions
Set a cookie with optional flags. Provide url, or domain (path defaults to /). If neither given, the active page's origin is used.
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 |
|---|---|---|---|
| url | No | URL the cookie applies to. Alternative to domain/path. | |
| name | Yes | ||
| path | No | Cookie path, default /. | |
| value | Yes | ||
| domain | No | Cookie domain, e.g. .example.com | |
| secure | No | ||
| expires | No | Expiry as Unix timestamp (seconds). Session cookie if omitted. | |
| httpOnly | No | ||
| sameSite | No |