Read or write an extension private storage
browser_extension_storageRead, write, remove, or clear an extension's private key/value storage (browser.storage.local) via a background extension page; requires an extension page such as an options page.
Instructions
Read or write the private key/value storage of an extension (browser.storage.local) — where an extension keeps its own settings and lists. It works by opening one of the extension own pages in a background tab, running the storage call in that page context (the only place where the extension APIs exist), then closing the tab. MEASURED limitation: a page of the extension is required, so extensions without an options page cannot be reached this way.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Extension id | |
| data | No | Object to write | |
| keys | No | Keys to read or remove (read defaults to all) | |
| action | Yes | What to do |