storage.import
Restore cookies and local or session storage from an export payload to recover a logged-in browser session without replaying the login form, or set state piecemeal.
Instructions
Restore storage and cookies, the counterpart to storage.export. Pass a whole export payload as state to put a logged-in session back without replaying the login form, or items/cookies to set state piecemeal.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "storage.import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| items | No | Key/value pairs to write into one store. | |
| state | No | A whole storage.export payload: localStorage, sessionStorage and cookies restored together. | |
| cookies | No | Cookies to restore, as returned by storage.list_cookies or storage.export. | |
| target_id | No | Target handle (tgt_*). Omit for the active page. | |
| browser_id | No | Browser handle (br_*). Omit to use the only running browser, or auto-launch one. | |
| clear_first | No | Clear the store first so the result is exact rather than merged. |