chromium-storage
Manage Chromium app storage: read/write localStorage or sessionStorage to seed feature flags or assert persisted app state. Supports get, set, remove, and clear actions.
Instructions
Read and write localStorage / sessionStorage of a Chromium (CDP) app's active page.
action="get": with
key, returns that value; withoutkey, returns all entries.action="set" (key, value): write an entry.
action="remove" (key): delete an entry.
action="clear": empty the store. Set
storeto "local" or "session". Storage is per-origin, so it reflects the active tab's document. Use when seeding feature flags / auth tokens before a flow or asserting persisted app state after one. Returns { value } for a single key, { entries, count } for all, or a status object ({ set } / { removed } / { cleared }) otherwise. Fails if the device is not a Chromium (CDP) device, or set is missing key/value. Chromium-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | get (optional) / set / remove: the storage key. | |
| udid | Yes | Chromium device id from `list-devices` (e.g. `chromium-cdp-9222`). | |
| store | Yes | Which Web Storage area: `local` (localStorage) or `session` (sessionStorage). | |
| value | No | set: the value to store. | |
| action | Yes | get: read one key (with `key`) or all entries. set: write `key`=`value`. remove: delete `key`. clear: empty the store. |