set_cookie
Set a cookie on the current origin via document.cookie, with name, value, and optional domain. Not for HTTP-only or cross-origin cookies.
Instructions
Set a cookie via document.cookie (limited to current origin).
Cannot set HTTP-only or cross-origin cookies. Prefer
``import_cookies`` for restoring full sessions across origins.
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 | ||
| value | Yes | ||
| domain | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |