Read/write web storage
storageManage a tab's local or session web data by reading, setting, removing, or clearing same-origin keys and entries.
Instructions
Read or write a tab's localStorage or sessionStorage (same-origin). get → one key (if key given) or all entries; set → key+value; remove → key; clear → wipe the area. Returns {ok, entries?|value?, error?}.
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>",
"area": "<area>",
"action": "<action>"
},
"name": "storage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Key (required for set/remove; optional for get) | |
| area | Yes | localStorage or sessionStorage | |
| tabId | Yes | Target tab ID (must be in the MCP group) | |
| value | No | Value (for set) | |
| action | Yes | get / set / remove / clear |