> ## Documentation Index
> Fetch the complete documentation index at: https://docs.browspark.krishm.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# devtools_storage

> Application storage.

Application storage. area: cookies (list/set/delete), local or session storage (list/set/remove/clear), indexeddb (databases/stores/data/put/clearStore/deleteDatabase), cache (list/entries/delete), usage (quota and per-type usage), clear (explicitly named storage types for one origin). Origin defaults to the page origin.

## Parameters

<ParamField body="tabId" type="integer">
  Target tab id from browser\_tabs, which lists tabs across all windows. Defaults to the agent's most recently opened usable tab, or the only usable tab. Otherwise select a listed tabId.
</ParamField>

<ParamField body="area" type="enum" required>
  One of: `cookies`, `local`, `session`, `indexeddb`, `cache`, `usage`, `clear`.
</ParamField>

<ParamField body="action" type="string">
  See area description; default list
</ParamField>

<ParamField body="origin" type="string">
   
</ParamField>

<ParamField body="url" type="string">
  cookies: URL to list/set for
</ParamField>

<ParamField body="name" type="string">
   
</ParamField>

<ParamField body="value" type="string">
   
</ParamField>

<ParamField body="key" type="string">
   
</ParamField>

<ParamField body="cookie" type="object">
   
</ParamField>

<ParamField body="database" type="string">
   
</ParamField>

<ParamField body="store" type="string">
   
</ParamField>

<ParamField body="index" type="string">
   
</ParamField>

<ParamField body="json" type="any">
  indexeddb put: value
</ParamField>

<ParamField body="skip" type="integer">
   
</ParamField>

<ParamField body="pageSize" type="integer">
   
</ParamField>

<ParamField body="cacheName" type="string">
   
</ParamField>

<ParamField body="pathFilter" type="string">
   
</ParamField>

<ParamField body="request" type="string">
  cache delete: request URL
</ParamField>

<ParamField body="types" type="enum[]">
  clear: which storage types Items: `cookies`, `local_storage`, `session_storage`, `indexeddb`, `cache_storage`, `service_workers`, `websql`, `shader_cache`, `all`.
</ParamField>

## Example

```json Cookies for the page origin theme={null}
{
  "tabId": 1234,
  "area": "cookies",
  "action": "list"
}
```

```json Set a localStorage key theme={null}
{
  "tabId": 1234,
  "area": "local",
  "action": "set",
  "key": "featureFlag",
  "value": "on"
}
```

```json Read an IndexedDB store theme={null}
{
  "tabId": 1234,
  "area": "indexeddb",
  "action": "data",
  "database": "app",
  "store": "todos",
  "pageSize": 20
}
```

```json Clear named storage types for the origin theme={null}
{
  "tabId": 1234,
  "area": "clear",
  "types": [
    "cookies",
    "local_storage"
  ]
}
```
