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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Cookie name | |
| value | Yes | Cookie value |