browser_set_cookie
Set a cookie on the current page to inject authentication tokens or session data without completing a login flow.
Instructions
Set a cookie on the current page.
Useful for injecting auth tokens or session cookies without going through a login flow. The browser must already be on a page in the target 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": "browser_set_cookie"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Cookie name | |
| path | No | Cookie path | / |
| value | Yes | Cookie value | |
| domain | No | Cookie domain (default: current page domain) | |
| secure | No | Secure flag |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |