set_cookie
Sets a cookie on a page using a URL or domain, defaulting to the current page location; file:// pages require an http(s) URL or domain to accept it.
Instructions
Set a cookie on the page (provide url or domain; defaults to current location.href). file:// pages usually reject cookies unless you pass an http(s) url or domain.
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 |
|---|---|---|---|
| url | No | ||
| name | Yes | ||
| path | No | ||
| value | Yes | ||
| domain | No | ||
| secure | No | ||
| expires | No | Unix time in seconds | |
| httpOnly | No | ||
| sameSite | No | ||
| targetId | No | ||
| processId | No | Target process ID. Omit if only one app is running. |