import_cookies
Load cookies from a JSON file to restore browser sessions, skipping invalid entries and overwriting duplicate cookies.
Instructions
Load cookies from a JSON file produced by export_cookies.
Silently skips entries that fail the ``CookieParam`` schema so a
partial restore still works. Existing cookies with the same
(name, domain, path) triple are overwritten by Chrome.
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": {
"file_path": "<file_path>"
},
"name": "import_cookies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |