session_import_cookies
Import cookies from Chrome into a browser session to access sites where the user is already logged in. Specify a domain to authenticate without passwords.
Instructions
Import cookies from the user's real Chrome browser into a session. Decrypts cookies from Chrome's encrypted database on macOS. Use this to access sites the user is already logged into. After importing, navigate to the site. If a captcha appears, the user must complete it in the visible browser window.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain to import cookies for (e.g. "shopify.com", "github.com"). Matches any cookie whose domain contains this string. | |
| sessionId | No | Target session ID. Omit to use the active session. |