extension_storage
Read, write, remove, or clear Chrome extension storage (local, sync, or session) in the service worker context to inspect and modify extension data.
Instructions
Read from or write to chrome.storage (local, sync, or session) in the extension's service worker context.
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": {
"action": "<action>"
},
"name": "extension_storage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | Storage area to use (default: local) | |
| data | No | Key-value pairs to write (for 'set' action) | |
| keys | No | Keys to read or remove (for 'get' and 'remove' actions; omit to get all) | |
| action | Yes | Storage operation: get keys, set data, remove keys, or clear all |