storage_clear_data
Clear localStorage, sessionStorage, or cookies for a browser context by type, with optional domain targeting for cookies, to reset state between test runs.
Instructions
Clear browser storage data by type (localStorage, sessionStorage, cookies)
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": {
"contextId": "<contextId>"
},
"name": "storage_clear_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| types | No | Types of storage to clear | |
| contextId | Yes | Browser context ID from browser_launch | |
| cookieDomain | No | Specific domain for cookie clearing (optional) |