set_cookie
Configure browser cookies by specifying name, value, domain, and optional attributes (Secure, HttpOnly, SameSite) for session and authentication control.
Instructions
Set a browser cookie with name, value, domain, and optional flags (secure, httpOnly, sameSite).
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 | / |
| tabId | No | Tab ID (optional) | |
| value | Yes | Cookie value | |
| domain | No | Cookie domain | |
| secure | No | Secure flag | |
| expires | No | Expiration timestamp | |
| httpOnly | No | HttpOnly flag | |
| sameSite | No | SameSite attribute |