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.
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": {
"domain": "<domain>"
},
"name": "session_import_cookies"
}
}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. |