storage
Read, write, or remove data in browser localStorage or sessionStorage. Preview destructive changes with dry-run mode before executing.
Instructions
Manage browser localStorage and sessionStorage.
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": {
"tabId": "<tabId>",
"storageType": "<storageType>",
"action": "<action>"
},
"name": "storage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Storage key | |
| tabId | Yes | Tab ID | |
| value | No | Value to store (string) | |
| action | Yes | Action to perform | |
| dryRun | No | Preview-only mode for destructive actions (remove, clear). When true, returns counts and a sample of keys that would be deleted without mutating any state. Default: false. | |
| storageType | Yes | local or session storage |