Set Web Storage
browser_set_storageSets localStorage and sessionStorage values on a specified origin to control application state for testing. Requires explicit acknowledgment of raw capture and credential access.
Instructions
Use when a full-profile authorized test explicitly needs controlled localStorage or sessionStorage values. Preconditions: acknowledgeRawCapture: true and acknowledgeCredentialAccess: true are required; target the intended origin and keys. Next: reload or navigate as needed to observe the application's reaction. Sensitivity: this changes potentially credential-bearing application state.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "browser_set_storage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | No | ||
| localStorage | No | ||
| sessionStorage | No | ||
| acknowledgeRawCapture | No | ||
| acknowledgeCredentialAccess | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| result | No |