cookies_set
Set a cookie for an HTTP(S) URL via the browser's existing debugger permission, enabling session, authentication, or state control during live browser automation.
Instructions
Set a cookie for an HTTP(S) URL via the existing debugger permission.
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": {
"url": "<url>",
"name": "<name>",
"value": "<value>"
},
"name": "cookies_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| name | Yes | ||
| path | No | ||
| tabId | No | Optional browser tab id to act on instead of the focused tab. | |
| value | Yes | ||
| domain | No | ||
| secure | No | ||
| expires | No | ||
| httpOnly | No | ||
| sameSite | No |