set_cookie
Set a browser cookie by specifying name, value, and optional attributes like domain, path, expiry, secure, and httpOnly.
Instructions
Set a browser cookie with the given name, value, and optional attributes.
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": "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. Defaults to current page domain. | |
| expiry | No | Cookie expiry as a Unix timestamp in seconds. Omit for session cookie. | |
| secure | No | Whether the cookie is secure (HTTPS only). | |
| httpOnly | No | Whether the cookie is HTTP-only (not accessible via JavaScript). |