set_storage
Write, delete, or clear localStorage, sessionStorage, or cookie entries in a live Chrome tab for the current origin.
Instructions
Write, delete or clear a localStorage/sessionStorage key, or a cookie with its path, domain and expiry. action=clear wipes every entry of that type for the origin and cannot be undone — on a site the user is logged into, clearing cookies logs them out. Read the current values first with get_storage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Required for set/delete | |
| path | No | Cookie path (default /) | |
| type | Yes | cookie writes a real cookie, not a storage key | |
| value | No | Required for action=set | |
| action | Yes | clear ignores key and wipes every entry of that type | |
| domain | No | Cookie domain | |
| secure | No | Cookie sent over HTTPS only | |
| tab_id | No | Target tab; omitted = last tab navigated in this session, else the active one | |
| expires | No | UTC date string (cookie) | |
| sameSite | No | None requires secure=true | |
| http_only | No | Cookie hidden from page JS |