pilot_set_cookie
Set a cookie on the current page's domain for authentication, testing, or session management. Specify cookie name and value to manually configure browser state.
Instructions
Set a cookie on the current page's domain with a given name and value. Use when the user wants to manually set a cookie for authentication, testing, or session management. The cookie is set on the domain of the currently active page. For bulk cookie import from a real browser, use pilot_import_cookies.
Parameters:
name: Cookie name (e.g., "session_id", "theme")
value: Cookie value (e.g., "abc123", "dark")
Returns: Confirmation with the cookie name (value is redacted for security).
Errors:
"Cannot set cookie without a page": Navigate to a URL first with pilot_navigate.
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": "pilot_set_cookie"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Cookie name | |
| value | Yes | Cookie value |