export_cookies
Export browser cookies to a JSON file for restoring in another session using import_cookies. Compatible with Edit This Cookie and Playwright formats.
Instructions
Dump all cookies to a JSON file.
Compatible with the "Edit This Cookie" Chrome extension export format
and Playwright's storage state shape (just the cookies slice).
Use ``import_cookies`` on another session to restore.
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": "export_cookies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |