import_cookies
Restore authenticated sessions by importing cookies as a JSON array. Bypass re-authentication using userId to isolate sessions.
Instructions
Import cookies for authenticated sessions. Provide cookies in a JSON string array. Restores login sessions without re-auth. Requires userId.
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": {
"userId": "<userId>",
"cookies": "<cookies>"
},
"name": "import_cookies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | Tab ID to target correct session (needed when using presets) | |
| userId | Yes | User ID for session isolation | |
| cookies | Yes | JSON string of cookie array to import |