browser_set_cookie
Set a browser cookie for a given session ID with specified name, value, and optional attributes like domain, path, secure, HttpOnly, and expiry for session management.
Instructions
Set a browser cookie.
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": {
"session_id": "<session_id>",
"name": "<name>",
"value": "<value>"
},
"name": "browser_set_cookie"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | The session ID | |
| name | Yes | Cookie name | |
| value | Yes | Cookie value | |
| domain | No | Cookie domain (optional, uses current domain if empty) | |
| path | No | Cookie path | / |
| secure | No | Secure flag | |
| http_only | No | HttpOnly flag | |
| expiry | No | Expiry timestamp (0 for session cookie) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |